AppWindow.SetPresenter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetPresenter(AppWindowPresenter) |
Applies the specified presenter to the window. |
SetPresenter(AppWindowPresenterKind) |
Applies the specified presenter kind to the window. |
SetPresenter(AppWindowPresenter)
Applies the specified presenter to the window.
public:
virtual void SetPresenter(AppWindowPresenter ^ appWindowPresenter) = SetPresenter;
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("SetPresenter")]
void SetPresenter(AppWindowPresenter const& appWindowPresenter);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("SetPresenter")]
public void SetPresenter(AppWindowPresenter appWindowPresenter);
function setPresenter(appWindowPresenter)
Public Sub SetPresenter (appWindowPresenter As AppWindowPresenter)
Parameters
- appWindowPresenter
- AppWindowPresenter
The presenter to apply to the window.
- Attributes
Remarks
If a presenter has been set, any changes made to that presenter will take effect immediately on the window.
To remove the current presenter from the window, call this method and specify a different presenter.
Applies to
SetPresenter(AppWindowPresenterKind)
Applies the specified presenter kind to the window.
public:
virtual void SetPresenter(AppWindowPresenterKind appWindowPresenterKind) = SetPresenter;
/// [Windows.Foundation.Metadata.Overload("SetPresenterByKind")]
void SetPresenter(AppWindowPresenterKind const& appWindowPresenterKind);
[Windows.Foundation.Metadata.Overload("SetPresenterByKind")]
public void SetPresenter(AppWindowPresenterKind appWindowPresenterKind);
function setPresenter(appWindowPresenterKind)
Public Sub SetPresenter (appWindowPresenterKind As AppWindowPresenterKind)
Parameters
- appWindowPresenterKind
- AppWindowPresenterKind
The presenter kind to apply to the window.
- Attributes
Remarks
Call this method with AppWindowPresenterKind.Default as the parameter to apply an OverlappedPresenter.