ActivationViewSwitcher Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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) |
Shows the view in a new standalone window. |
ShowAsStandaloneAsync(Int32, ViewSizePreference) |
Shows the view in a new standalone window and sets the size preference for the view. |
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin