ActivationViewSwitcher ActivationViewSwitcher ActivationViewSwitcher ActivationViewSwitcher ActivationViewSwitcher Class

Definition

Provides methods for switching to an app view in response to an activation.

public : sealed class ActivationViewSwitcher
struct winrt::Windows::UI::ViewManagement::ActivationViewSwitcher
public sealed class ActivationViewSwitcher
Public NotInheritable Class ActivationViewSwitcher
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Get an instance of ActivationViewSwitcher from the ViewSwitcher property of the activation event args. To use the ActivationViewSwitcher you must first disable the system view activation policy by calling DisableSystemViewActivationPolicy. The first activation of an app cannot use the ActivationViewSwitcher to control which view to show. Apps can only use it in subsequent activations.

Methods

IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32) IsViewPresentedOnActivationVirtualDesktop(Int32)

Returns a value that indicates whether the specified view is present on the virtual desktop that the activation was initiated on.

ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32) ShowAsStandaloneAsync(Int32)

Shows the view in a new standalone window.

ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference) ShowAsStandaloneAsync(Int32, ViewSizePreference)

Shows the view in a new standalone window and sets the size preference for the view.