DesignerAppManager 類別

定義

相較于使用 XamlUIPresenter 並在 Win32 進程中執行的舊版設計工具,管理在一般 UWP 內容中執行的 XAML 設計介面中的應用程式。 需要此程式,才能在 中指定 NoUIEntryPoints-DesignModeV2 DisplayName 屬性。APPX 以便在此模式中成功啟動。 啟動的應用程式不會顯示在 TaskBar 或 TaskView 切換器中。

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
繼承
Object Platform::Object IInspectable DesignerAppManager
屬性
實作

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.16299.0 引進)
API contract
Windows.UI.Xaml.Hosting.HostingContract (已於 v2.0 引進)

建構函式

DesignerAppManager(String)

初始化 DesignerAppManager 類別的新實例。

屬性

AppUserModelId

取得應用程式使用者模型的識別碼。

方法

Close()

關閉應用程式管理員。 這會關閉 DesignerAppManager 啟動的進程,並等候進程終止。 如果進程無回應,這個方法可能會無限期地封鎖。 手動關閉時 ,不會 引發 DesignerAppExited 事件。

CreateNewViewAsync(DesignerAppViewState, Size)

建立新的 DesignerAppView。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

LoadObjectIntoAppAsync(String, Guid, String)

將指定的 物件載入應用程式。

事件

DesignerAppExited

發生于設計工具中的應用程式已結束時。

適用於