DesignerAppView 類別

定義

表示 XAML 設計介面中的應用程式檢視。

public ref class DesignerAppView sealed : IClosable
/// [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 DesignerAppView final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Hosting.HostingContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DesignerAppView final : IClosable
[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 DesignerAppView : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Hosting.HostingContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DesignerAppView : System.IDisposable
Public NotInheritable Class DesignerAppView
Implements IDisposable
繼承
Object Platform::Object IInspectable DesignerAppView
屬性
實作

Windows 需求

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

屬性

ApplicationViewId

取得應用程式檢視的識別碼。

AppUserModelId

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

ViewSize

取得設計工具中的應用程式檢視大小。

ViewState

取得值,這個值表示檢視是可見還是隱藏。

方法

Close()

關閉設計工具中的應用程式檢視。

Dispose()

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

UpdateViewAsync(DesignerAppViewState, Size)

更新設計工具中的應用程式檢視。

適用於