语言

ContentSite 类

定义

为 ContentIsland 提供主机环境。

[WebHostHidden]
public ref class ContentSite : IClosableNotifier, IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[WebHostHidden]
class ContentSite : IClosableNotifier, IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public class ContentSite : IClosableNotifier, System.IDisposable
Public Class ContentSite
Implements IClosableNotifier, IDisposable
继承
Object Platform::Object IInspectable ContentSite
属性
实现

注解

ContentSite 派生自 DesktopSiteBridge,并提供用于配置关联的 ContentIsland 的 API。

ContentSite 对象和 ContentIsland 对象之间始终有 1:1 映射。

属性

名称 说明
ActualSize

获取 ContentSite 的逻辑大小。

ClientSize

获取父 Win32 HWND 客户端大小。

CoordinateConverter

获取 ContentCoordinateConverter ,用于在本地坐标空间与系统屏幕坐标之间进行转换。

DispatcherQueue

获取与此 ContentSite 关联的 DispatcherQueue。

Environment

获取此 ContentSite 的 ContentSiteEnvironment 对象。

IsClosed

获取此 ContentSite 是否已关闭。

IsConnected

获取此 ContentSite 是否连接到 ContentIsland。

IsSiteEnabled

获取或设置是否启用此 ContentSite 。

IsSiteVisible

获取或设置此 ContentSite 是否可见。

LayoutDirection

获取或设置此 ContentSite 的阅读顺序和文本对齐的布局方向。

LocalToClientTransformMatrix

获取从根 视觉对象 到托管 HWND 的工作区的转换矩阵。

LocalToParentTransformMatrix

获取从根视觉对象到父 ContentSite 的根视觉对象的转换矩阵(如果存在)。

OverrideScale

获取或设置用于此 ContentSite 的缩放因子,该比例因子替代 ParentScale。

ParentScale

获取或设置此 ContentSite 的父 Win32 HWND 默认缩放因子。

ProcessesKeyboardInput

获取或设置 ContentSite 对象是否处理键盘输入。

ProcessesPointerInput

获取或设置 ContentSite 对象是否处理指针输入。

RasterizationScale

获取此 ContentSite 的计算本地 DPI。

RequestedSize

从关联的 ContentIsland 获取逻辑请求的大小。

ShouldApplyRasterizationScale

获取或设置 ContentSite 是否应应用计算 的光栅化Scale。

View

获取与此 ContentSite 关联的 ContentSiteView。

方法

名称 说明
Close()

关闭此 ContentSite。

Dispose()

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

GetIslandStateChangeDeferral()

检索此 ContentSite 的新 ContentDeferral。

TryGetAutomationProvider(Object)

为 ContentIsland 提供主机环境。

事件

名称 说明
Closed

关闭此 ContentSite 时发生。

FrameworkClosed

框架关闭时发生。

RequestedStateChanged

当 ContentIsland 对其关联的 ContentSite 发出新请求时发生。

适用于