AppWindow.Create Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| Create() |
Crea una finestra dell'app con gli stili e le proprietà impostati su quello dell'oggetto predefinito |
| Create(AppWindowPresenter) |
Crea una finestra con stili e proprietà, come definito nell'oggetto specificato |
| Create(AppWindowPresenter, WindowId) |
Crea una finestra con stili e proprietà, come definito nell'oggetto specificato |
| Create(AppWindowPresenter, WindowId, DispatcherQueue) |
Crea una finestra con stili e proprietà, come definito nell'oggetto specificato |
Create()
Crea una finestra dell'app con gli stili e le proprietà impostati su quello dell'oggetto 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
Valori restituiti
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.
Valori restituiti
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 nell'oggetto specificato AppWindowPresenter e padre 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.
Valori restituiti
Nuova finestra dell'app con la configurazione specificata.
- Attributi
Commenti
Per rendere questa finestra una finestra di proprietà, passare l'ID della finestra che si desidera essere il proprietario al ownerWindowId parametro . Deve ownerWindowId essere un WindowId dello stesso processo della finestra a cui è applicata la configurazione.
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 AppWindowPresenter, padre della finestra specificata e 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.
Valori restituiti
Nuova finestra dell'app con la configurazione specificata.
- Attributi