Condividi tramite


AppWindow.Create Metodo

Definizione

Overload

Create()

Crea una finestra dell'app con gli stili e le proprietà impostate su quella del valore predefinito OverlappedPresenter.

Create(AppWindowPresenter)

Crea una finestra con stili e proprietà, come definito nell'oggetto specificato AppWindowPresenter.

Create(AppWindowPresenter, WindowId)

Crea una finestra con stili e proprietà, come definito nella finestra specificata AppWindowPresenter e padreata nella finestra specificata.

Create(AppWindowPresenter, WindowId, DispatcherQueue)

Crea una finestra con stili e proprietà, come definito nell'oggetto specificato, padre della finestra specificata AppWindowPresentere associata all'oggetto specificato DispatcherQueue.

Create()

Crea una finestra dell'app con gli stili e le proprietà impostate su quella del valore predefinito 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

Restituisce

Nuova finestra dell'app con la configurazione predefinita.

Attributi

Vedi anche

Si applica a

Create(AppWindowPresenter)

Crea una finestra con stili e proprietà, come definito nell'oggetto specificato 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

Parametri

appWindowPresenter
AppWindowPresenter

Oggetto AppWindowPresenter che specifica i valori delle proprietà da applicare alla finestra.

Restituisce

Nuova finestra dell'app con la configurazione specificata.

Attributi

Vedi anche

Si applica a

Create(AppWindowPresenter, WindowId)

Crea una finestra con stili e proprietà, come definito nella finestra specificata AppWindowPresenter e padreata nella finestra specificata.

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

Parametri

appWindowPresenter
AppWindowPresenter

Oggetto AppWindowPresenter che specifica i valori delle proprietà da applicare alla finestra.

ownerWindowId
WindowId

ID della finestra padre per la nuova finestra.

Restituisce

Nuova finestra dell'app con la configurazione specificata.

Attributi

Commenti

Per rendere questa finestra di proprietà, passare l'ID della finestra che si vuole essere il proprietario del ownerWindowId parametro. L'oggetto ownerWindowId deve essere un WindowId dallo stesso processo della finestra con la configurazione applicata.

Le configurazioni ContextMenu, Dialog e ToolWindow richiedono che questa proprietà venga impostata quando la finestra viene creata per essere applicata correttamente.

Vedi anche

Si applica a

Create(AppWindowPresenter, WindowId, DispatcherQueue)

Crea una finestra con stili e proprietà, come definito nell'oggetto specificato, padre della finestra specificata AppWindowPresentere associata all'oggetto specificato 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

Parametri

appWindowPresenter
AppWindowPresenter

Oggetto AppWindowPresenter che specifica i valori delle proprietà da applicare alla finestra.

ownerWindowId
WindowId

ID della finestra padre per la nuova finestra.

DispatcherQueue
DispatcherQueue

Coda dispatcher da associare alla nuova finestra.

Restituisce

Nuova finestra dell'app con la configurazione specificata.

Attributi

Si applica a