Udostępnij za pośrednictwem


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.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ApplicationViewSwitcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class ApplicationViewSwitcher
Public Class ApplicationViewSwitcher
Inheritance
Object Platform::Object IInspectable ApplicationViewSwitcher
Attributes

Windows 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, Int32, ApplicationViewSwitchingOptions)

Visually transitions the calling window (app view) to a specified window.

SwitchAsync(Int32, Int32)

Visually switches the calling window (app view) to a specified window.

SwitchAsync(Int32)

Visually switches the calling window (app view) to another window.

TryShowAsStandaloneAsync(Int32, ViewSizePreference, Int32, ViewSizePreference)

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)

Displays another window (app view) for the app on the screen, adjacent to the original window

TryShowAsViewModeAsync(Int32, ApplicationViewMode, ViewModePreferences)

Displays a view as a standalone view in the desired view mode with the specified options.

TryShowAsViewModeAsync(Int32, ApplicationViewMode)

Displays a view as a standalone view in the desired view mode.

Applies to

See also