AppWindow.Create メソッド

定義

オーバーロード

Create()

スタイルとプロパティが既定の に設定されたアプリ ウィンドウを作成します OverlappedPresenter

Create(AppWindowPresenter)

指定した で定義されているスタイルとプロパティを含むウィンドウを作成します 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)

指定した で定義されているスタイルとプロパティを含むウィンドウを作成します 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

新しいウィンドウに関連付けるディスパッチャー キュー。

戻り値

指定した構成の新しいアプリ ウィンドウ。

属性

適用対象