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()

执行与释放或重置非托管资源关联的应用程序定义的任务。

UpdateViewAsync(DesignerAppViewState, Size)

在设计器中汇报应用视图。

适用于