FrameworkView 类

定义

表示应用程序的 UI 窗口。

public ref class FrameworkView sealed : IFrameworkView
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FrameworkView final : IFrameworkView
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class FrameworkView final : IFrameworkView
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FrameworkView : IFrameworkView
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class FrameworkView : IFrameworkView
Public NotInheritable Class FrameworkView
Implements IFrameworkView
继承
Object Platform::Object IInspectable FrameworkView
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

此类提供基础结构支持,以便 应用程序 类针对核心应用模型使用的 IFrameworkView 模式具有正确的线程和对象生存期注意事项。 大多数使用 C++、C# 或 Visual Basic 开发方案的 UWP 应用不会直接使用此类执行任何操作。

构造函数

FrameworkView()

初始化 FrameworkView 类的新实例。

方法

Initialize(CoreApplicationView)

初始化视图。

Load(String)

加载视图。

Run()

将执行传递给视图提供程序。

SetWindow(CoreWindow)

窗口 与视图相关联。

Uninitialize()

将视图返回到未初始化状态。

适用于

另请参阅