مشاركة عبر


ActivationViewSwitcher Class

Definition

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

public ref class ActivationViewSwitcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ActivationViewSwitcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ActivationViewSwitcher
Public NotInheritable Class ActivationViewSwitcher
Inheritance
Object Platform::Object IInspectable ActivationViewSwitcher
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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)

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

ShowAsStandaloneAsync(Int32, ViewSizePreference)

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

ShowAsStandaloneAsync(Int32)

Shows the view in a new standalone window.

Applies to