Share via


ApplicationViewSwitcher.TryShowAsStandaloneAsync Méthode

Définition

Surcharges

TryShowAsStandaloneAsync(Int32)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine

TryShowAsStandaloneAsync(Int32, ViewSizePreference)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine.

TryShowAsStandaloneAsync(Int32)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId);
function tryShowAsStandaloneAsync(viewId)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer) As IAsyncOperation(Of Boolean)

Paramètres

viewId
Int32

int

ID de la nouvelle fenêtre à afficher.

Retours

Retourne la valeur true de façon asynchrone si l’appel réussit ; false si ce n’est pas le cas.

Attributs

Remarques

Si cette méthode réussit, une nouvelle fenêtre est créée en regard de la fenêtre d’origine. Il ne peut être appelé qu’à partir d’un thread ASTA (core UI).

La nouvelle fenêtre a son propre thread d’interface utilisateur (ASTA) et coreWindow associé. Les développeurs doivent utiliser des méthodes thread-safe pour la communication entre les fenêtres, telles que window.postMessage pour les applications JavaScript et la messagerie CoreDispatcher (CoreWindow.Dispatcher) pour les développeurs C# et C++.

Voir aussi

S’applique à

TryShowAsStandaloneAsync(Int32, ViewSizePreference)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithSizePreferenceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId, ViewSizePreference const& sizePreference);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithSizePreferenceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference);
function tryShowAsStandaloneAsync(viewId, sizePreference)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer, sizePreference As ViewSizePreference) As IAsyncOperation(Of Boolean)

Paramètres

viewId
Int32

int

ID de la nouvelle fenêtre à afficher.

sizePreference
ViewSizePreference

Dimensionnement général préféré de la nouvelle fenêtre.

Retours

Retourne la valeur true de façon asynchrone si l’appel réussit ; false si ce n’est pas le cas.

Attributs

Remarques

Si cette méthode réussit, une nouvelle fenêtre est créée en regard de la fenêtre d’origine. Il ne peut être appelé qu’à partir d’un thread ASTA (core UI).

La nouvelle fenêtre a son propre thread d’interface utilisateur (ASTA) et coreWindow associé. Les développeurs doivent utiliser des méthodes thread-safe pour la communication entre les fenêtres, telles que window.postMessage pour les applications JavaScript et la messagerie CoreDispatcher (CoreWindow.Dispatcher) pour les développeurs C# et C++.

Voir aussi

S’applique à

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

Affiche une autre fenêtre (vue d’application) pour l’application à l’écran, adjacente à la fenêtre d’origine.

public:
 static IAsyncOperation<bool> ^ TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference, int anchorViewId, ViewSizePreference anchorSizePreference);
/// [Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<bool> TryShowAsStandaloneAsync(int const& viewId, ViewSizePreference const& sizePreference, int const& anchorViewId, ViewSizePreference const& anchorSizePreference);
[Windows.Foundation.Metadata.Overload("TryShowAsStandaloneWithAnchorViewAndSizePreferenceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<bool> TryShowAsStandaloneAsync(int viewId, ViewSizePreference sizePreference, int anchorViewId, ViewSizePreference anchorSizePreference);
function tryShowAsStandaloneAsync(viewId, sizePreference, anchorViewId, anchorSizePreference)
Public Shared Function TryShowAsStandaloneAsync (viewId As Integer, sizePreference As ViewSizePreference, anchorViewId As Integer, anchorSizePreference As ViewSizePreference) As IAsyncOperation(Of Boolean)

Paramètres

viewId
Int32

int

ID de la nouvelle fenêtre à afficher.

sizePreference
ViewSizePreference

Dimensionnement général préféré de la nouvelle fenêtre.

anchorViewId
Int32

int

ID de la fenêtre appelante (ancre).

anchorSizePreference
ViewSizePreference

Nouveau dimensionnement général préféré de la fenêtre d’appel si cet appel réussit.

Retours

Retourne la valeur true de façon asynchrone si l’appel réussit ; false si ce n’est pas le cas.

Attributs

Remarques

Si cette méthode réussit, une nouvelle fenêtre est créée en regard de la fenêtre d’origine. Il ne peut être appelé qu’à partir d’un thread ASTA (core UI).

La nouvelle fenêtre a son propre thread d’interface utilisateur (ASTA) et coreWindow associé. Les développeurs doivent utiliser des méthodes thread-safe pour la communication entre les fenêtres, telles que window.postMessage pour les applications JavaScript et la messagerie CoreDispatcher (CoreWindow.Dispatcher) pour les développeurs C# et C++.

Voir aussi

S’applique à