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
Create() |
Crea una finestra dell'app con gli stili e le proprietà impostate su quella del valore 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 nella finestra specificata |
Create(AppWindowPresenter, WindowId, DispatcherQueue) |
Crea una finestra con stili e proprietà, come definito nell'oggetto specificato, padre della finestra specificata |
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 AppWindowPresenter
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.
Restituisce
Nuova finestra dell'app con la configurazione specificata.
- Attributi
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per