DesignerAppManager DesignerAppManager DesignerAppManager 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 : sealed class DesignerAppManager : IClosable, IDesignerAppManager
struct winrt::Windows::UI::Xaml::Hosting::DesignerAppManager : IClosable, IDesignerAppManager
public sealed class DesignerAppManager : IDisposable, IDesignerAppManager
Public NotInheritable Class DesignerAppManager Implements IDisposable, IDesignerAppManager
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.16299.0)
API contract
Windows.UI.Xaml.Hosting.HostingContract (introduced v2)

Constructors

DesignerAppManager(String) DesignerAppManager(String) DesignerAppManager(String) DesignerAppManager(String)

Initializes a new instance of the DesignerAppManager class.

Properties

AppUserModelId AppUserModelId AppUserModelId AppUserModelId

Gets the identifier for the app user model.

Methods

Close() Close() Close() 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) CreateNewViewAsync(DesignerAppViewState, Size) CreateNewViewAsync(DesignerAppViewState, Size) CreateNewViewAsync(DesignerAppViewState, Size)

Creates a new DesignerAppView.

Dispose() Dispose() Dispose() Dispose()

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

LoadObjectIntoAppAsync(String, Guid, String) LoadObjectIntoAppAsync(String, Guid, String) LoadObjectIntoAppAsync(String, Guid, String) LoadObjectIntoAppAsync(String, Guid, String)

Loads the specified object into the app.

Events

DesignerAppExited DesignerAppExited DesignerAppExited DesignerAppExited

Occurs when the app in the designer has exited.