ApplicationViewSwitcher Class
Definition
Represents the app view switching behaviors for an app.
public ref class ApplicationViewSwitcher abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Muse(Version=100859904)]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApplicationViewSwitcher abstract final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Muse(Version=100859904)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2, 65536, "Windows.Foundation.UniversalApiContract")]
class ApplicationViewSwitcher abstract final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Muse(Version=100859904)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Static(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics3, 262144, "Windows.Foundation.UniversalApiContract")]
class ApplicationViewSwitcher abstract final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Muse(Version=100859904)]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ApplicationViewSwitcher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Muse(Version=100859904)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2), 65536, "Windows.Foundation.UniversalApiContract")]
public static class ApplicationViewSwitcher
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Muse(Version=100859904)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics2), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.ViewManagement.IApplicationViewSwitcherStatics3), 262144, "Windows.Foundation.UniversalApiContract")]
public static class ApplicationViewSwitcher
Public Class ApplicationViewSwitcher
- Inheritance
-
ApplicationViewSwitcher
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1703 | 15063 | TryShowAsViewModeAsync(Int32,ApplicationViewMode) |
1703 | 15063 | TryShowAsViewModeAsync(Int32,ApplicationViewMode,ViewModePreferences) |
Methods
DisableShowingMainViewOnActivation() |
Disables the primary window (app view) when the app is activated, showing the most recently displayed window instead. |
DisableSystemViewActivationPolicy() |
Disables Windows shell control of the view selection on activation, and lets the app handle it instead. |
PrepareForCustomAnimatedSwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions) |
Prepares your app to visually transition between two windows with a custom animation. |
SwitchAsync(Int32) |
Visually switches the calling window (app view) to another window. |
SwitchAsync(Int32, Int32) |
Visually switches the calling window (app view) to a specified window. |
SwitchAsync(Int32, Int32, ApplicationViewSwitchingOptions) |
Visually transitions the calling window (app view) to a specified window. |
TryShowAsStandaloneAsync(Int32) |
Displays another window (app view) for the app on the screen, adjacent to the original window |
TryShowAsStandaloneAsync(Int32, ViewSizePreference) |
Displays another window (app view) for the app on the screen, adjacent to the original window |
TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference) |
Displays another window (app view) for the app on the screen, adjacent to the original window. |
TryShowAsViewModeAsync(Int32, ApplicationViewMode) |
Displays a view as a standalone view in the desired view mode. |
TryShowAsViewModeAsync(Int32, ApplicationViewMode, ViewModePreferences) |
Displays a view as a standalone view in the desired view mode with the specified options. |