Share via


AppWindow.SetPresenter 方法

定義

多載

SetPresenter(AppWindowPresenter)

將指定的簡報者套用至視窗。

SetPresenter(AppWindowPresenterKind)

將指定的簡報者種類套用至視窗。

SetPresenter(AppWindowPresenter)

將指定的簡報者套用至視窗。

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)

參數

appWindowPresenter
AppWindowPresenter

要套用至視窗的簡報者。

屬性

備註

如果已設定簡報者,對該簡報者所做的任何變更都會立即在視窗上生效。

若要從視窗中移除目前的簡報者,請呼叫這個方法並指定不同的簡報者。

適用於

SetPresenter(AppWindowPresenterKind)

將指定的簡報者種類套用至視窗。

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)

參數

appWindowPresenterKind
AppWindowPresenterKind

要套用至視窗的簡報者種類。

屬性

備註

使用 AppWindowPresenterKind.Default 呼叫這個方法,作為套用 OverlappedPresenter的參數。

適用於