Dela via


DesignerAppManager Class

Definition

Manages an application in a XAML design surface that runs in a regular UWP context, compared to the legacy designer which uses the XamlUIPresenter and runs in a Win32 process. The process is required to specify the NoUIEntryPoints-DesignModeV2 DisplayName property in the .APPX in order to be activated successfully in this mode. The launched application will not show up in the TaskBar or TaskView switcher.

public ref class DesignerAppManager sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Hosting.IDesignerAppManagerFactory, 131072, "Windows.UI.Xaml.Hosting.HostingContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Hosting.HostingContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DesignerAppManager final : IClosable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Hosting.IDesignerAppManagerFactory), 131072, "Windows.UI.Xaml.Hosting.HostingContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Hosting.HostingContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DesignerAppManager : System.IDisposable
Public NotInheritable Class DesignerAppManager
Implements IDisposable
Inheritance
Object Platform::Object IInspectable DesignerAppManager
Attributes
Implements

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.16299.0)
API contract
Windows.UI.Xaml.Hosting.HostingContract (introduced in v2.0)

Constructors

DesignerAppManager(String)

Initializes a new instance of the DesignerAppManager class.

Properties

AppUserModelId

Gets the identifier for the app user model.

Methods

Close()

Closes the app manager. This will close the process activated by the DesignerAppManager and wait for the process to terminate. It's possible that this method could block for an indefinite amount of time if the process is hung. The DesignerAppExited event won't be fired when manually closed.

CreateNewViewAsync(DesignerAppViewState, Size)

Creates a new DesignerAppView.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

LoadObjectIntoAppAsync(String, Guid, String)

Loads the specified object into the app.

Events

DesignerAppExited

Occurs when the app in the designer has exited.

Applies to