語言

AppWindow.Create 方法

定義

多載

名稱 Description
Create()

建立一個應用程式視窗,並將樣式和屬性設定為預設 OverlappedPresenter的 。

Create(AppWindowPresenter)

建立一個具有指定 Style 與屬性 AppWindowPresenter的視窗。

Create(AppWindowPresenter, WindowId)

建立一個具有指定視窗中定義 AppWindowPresenter 的樣式與屬性,並作為指定視窗子系的視窗。

Create(AppWindowPresenter, WindowId, DispatcherQueue)

建立一個具有指定視窗中定義 AppWindowPresenter的樣式與屬性的視窗,為指定的視窗子級,並與指定的 DispatcherQueue視窗 相關聯。

Create()

建立一個應用程式視窗,並將樣式和屬性設定為預設 OverlappedPresenter的 。

public:
 static AppWindow ^ Create();
/// [Windows.Foundation.Metadata.Overload("Create")]
 static AppWindow Create();
[Windows.Foundation.Metadata.Overload("Create")]
public static AppWindow Create();
function create()
Public Shared Function Create () As AppWindow

傳回

一個新的應用程式視窗,預設設定。

屬性

另請參閱

適用於

Create(AppWindowPresenter)

建立一個具有指定 Style 與屬性 AppWindowPresenter的視窗。

public:
 static AppWindow ^ Create(AppWindowPresenter ^ appWindowPresenter);
/// [Windows.Foundation.Metadata.Overload("CreateWithPresenter")]
 static AppWindow Create(AppWindowPresenter const& appWindowPresenter);
[Windows.Foundation.Metadata.Overload("CreateWithPresenter")]
public static AppWindow Create(AppWindowPresenter appWindowPresenter);
function create(appWindowPresenter)
Public Shared Function Create (appWindowPresenter As AppWindowPresenter) As AppWindow

參數

appWindowPresenter
AppWindowPresenter

一個 AppWindowPresenter 指定要套用到視窗的屬性值的物件。

傳回

一個新的應用程式視窗,裡面有指定的設定。

屬性

另請參閱

適用於

Create(AppWindowPresenter, WindowId)

建立一個具有指定視窗中定義 AppWindowPresenter 的樣式與屬性,並作為指定視窗子系的視窗。

public:
 static AppWindow ^ Create(AppWindowPresenter ^ appWindowPresenter, WindowId ownerWindowId);
/// [Windows.Foundation.Metadata.Overload("CreateWithPresenterAndOwner")]
 static AppWindow Create(AppWindowPresenter const& appWindowPresenter, WindowId const& ownerWindowId);
[Windows.Foundation.Metadata.Overload("CreateWithPresenterAndOwner")]
public static AppWindow Create(AppWindowPresenter appWindowPresenter, WindowId ownerWindowId);
function create(appWindowPresenter, ownerWindowId)
Public Shared Function Create (appWindowPresenter As AppWindowPresenter, ownerWindowId As WindowId) As AppWindow

參數

appWindowPresenter
AppWindowPresenter

一個 AppWindowPresenter 指定要套用到視窗的屬性值的物件。

ownerWindowId
WindowId

新視窗的父視窗的 ID。

傳回

一個新的應用程式視窗,裡面有指定的設定。

屬性

備註

要讓這個視窗成為擁有視窗,請將你想成為擁有者的視窗的 ID 傳給參數 ownerWindowId 。 必須 ownerWindowId 是與套用該設定視窗相同的 WindowId 。

ContextMenu、Dialog 和 ToolWindow 的設定需要在建立視窗時設定此屬性,才能成功套用。

另請參閱

適用於

Create(AppWindowPresenter, WindowId, DispatcherQueue)

建立一個具有指定視窗中定義 AppWindowPresenter的樣式與屬性的視窗,為指定的視窗子級,並與指定的 DispatcherQueue視窗 相關聯。

public:
 static AppWindow ^ Create(AppWindowPresenter ^ appWindowPresenter, WindowId ownerWindowId, DispatcherQueue ^ DispatcherQueue);
/// [Windows.Foundation.Metadata.Overload("CreateWithDispatcherQueue")]
 static AppWindow Create(AppWindowPresenter const& appWindowPresenter, WindowId const& ownerWindowId, DispatcherQueue const& DispatcherQueue);
[Windows.Foundation.Metadata.Overload("CreateWithDispatcherQueue")]
public static AppWindow Create(AppWindowPresenter appWindowPresenter, WindowId ownerWindowId, DispatcherQueue DispatcherQueue);
function create(appWindowPresenter, ownerWindowId, DispatcherQueue)
Public Shared Function Create (appWindowPresenter As AppWindowPresenter, ownerWindowId As WindowId, DispatcherQueue As DispatcherQueue) As AppWindow

參數

appWindowPresenter
AppWindowPresenter

一個 AppWindowPresenter 指定要套用到視窗的屬性值的物件。

ownerWindowId
WindowId

新視窗的父視窗的 ID。

DispatcherQueue
DispatcherQueue

調度器佇列要與新視窗關聯。

傳回

一個新的應用程式視窗,裡面有指定的設定。

屬性

適用於