语言

ContentIsland 类

定义

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

[WebHostHidden]
public ref class ContentIsland : ICompositionSupportsSystemBackdrop, IClosableNotifier, IClosable
[WebHostHidden]
public ref class ContentIsland : ICompositionSupportsSystemBackdrop, IContentIslandEndpointConnectionPrivate, 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 ContentIsland : ICompositionSupportsSystemBackdrop, 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 ContentIsland : ICompositionSupportsSystemBackdrop, IContentIslandEndpointConnectionPrivate, 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 ContentIsland : ICompositionSupportsSystemBackdrop, IClosableNotifier, System.IDisposable
[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 ContentIsland : ICompositionSupportsSystemBackdrop, IContentIslandEndpointConnectionPrivate, IClosableNotifier, System.IDisposable
Public Class ContentIsland
Implements IClosableNotifier, ICompositionSupportsSystemBackdrop, IDisposable
Public Class ContentIsland
Implements IClosableNotifier, ICompositionSupportsSystemBackdrop, IContentIslandEndpointConnectionPrivate, IDisposable
继承
Object Platform::Object IInspectable ContentIsland
属性
实现

注解

ContentIsland 支持基于 合成的动画、呈现效果和交互式操作。

这些自包含的内容可以组合成“场景”。 从概念上讲,它们等效于 子窗口 ,因为它们允许细分场景。

属性

名称 说明
ActualSize

获取 ContentIsland 的逻辑大小,由 ContentSite 确定。

AppData

获取或设置此 ContentIsland 的存储容器。

AutomationOption

获取此 ContentIsland 的自动化托管协定的选项。

Children

获取父级到此 ContentIsland 的 ChildSiteLink 对象的无序枚举。

ConnectionInfo

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

CoordinateConverter

获取此 ContentIsland 的 ContentCoordinateConverter。

CustomProperties

获取 ContentIsland 的自定义属性集。

DispatcherQueue

获取与此 ContentIsland 关联的 DispatcherQueue。

Environment

获取与此 ContentIsland 关联的 ContentIslandEnvironment。

FragmentRootAutomationProvider

获取片段根自动化提供程序。

Id

获取此 ContentIsland 的唯一标识符。

IsClosed

获取此 ContentIsland 是否已关闭。

IsConnected

获取此 ContentIsland 是否连接到 ContentSite。

IsHitTestVisibleWhenTransparent

获取或设置此 ContentIsland 在未显示任何内容时是否支持视觉命中测试。

IsIslandEnabled

获取或设置此 ContentIsland 是否可以接收输入。

IsIslandVisible

获取或设置此 ContentIsland 是否由其关联的 ContentSite 显示。

IsRemoteEndpointConnected

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

IsSiteEnabled

获取 ContentSite 是否可以接收输入。

IsSiteVisible

获取关联的 ContentSite 是否可见。

LayoutDirection

获取 ContentSite 中阅读顺序和文本对齐的布局方向。

LocalToClientTransformMatrix

获取从根 Visual 目录到宿主 HWND 的工作区的转换矩阵。

LocalToParentTransformMatrix

获取从根 Visual 目录到 Visual 父 ContentIsland 根的转换矩阵(如果存在)。

NextSiblingAutomationProvider

获取下一个同级自动化提供程序。

ParentAutomationProvider

获取父自动化提供程序。

Popups

获取为此 ContentIsland 父级的 DesktopPopupSiteBridge 对象的无序枚举。

PreviousSiblingAutomationProvider

获取上一个同级自动化提供程序。

ProcessesKeyboardInput

获取一个值,该值指示关联的 ContentSite 是否正在处理键盘输入。

ProcessesPointerInput

获取一个值,该值指示关联的 ContentSite 是否正在处理指针输入。

RasterizationScale

获取Microsoft的本地点/英寸(dpi)。Ui。Composition.ICompositionSurface。

Root

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

SystemBackdrop

获取或设置要应用于此 ContentIsland 的系统背景。

方法

名称 说明
Close()

关闭 ContentIsland。

ConnectRemoteEndpoint(String)

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

Create(Visual)

在断开连接和空状态下创建新的 ContentIsland 。

CreateForSystemVisual(DispatcherQueue, Visual)

为系统(WindowsContentIsland> 实例。Ui。合成) 。

Dispose()

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

FindAllForCompositor(Compositor)

检索与指定 ContentIslandMicrosoft> 对象。Ui。Composition.Compositor。

FindAllForCurrentThread()

检索当前线程拥有的所有 ContentIsland 对象。

FindAllForSystemCompositor(Compositor)

检索与指定系统关联的所有 ContentIsland 对象(Windows。Ui。合成) Compositor。

GetAutomationHostProvider()

获取与 ContentIsland 关联的主机自动化提供程序。

GetBySystemVisual(Visual)

检索指定系统(Windows)的 ContentIsland 对象。UI。Composition) Visual 是根系统 Visual 或根系统Visual的后代。

GetByVisual(Visual)

检索包含当前线程上指定子视觉对象的 ContentIsland。

GetFromId(UInt64)

检索具有指定标识符的 ContentIsland 。

GetStateChangeDeferral()

检索一个 ContentDeferral 对象,该对象允许对各个属性进行异步更新,而无需引发 StateChanged 事件,直到延迟完成。

RequestSize(Vector2)

从 ContentSite 检索 ContentIsland 的新大小。

事件

名称 说明
AutomationProviderRequested

当请求此 ContentIsland 的自动化提供程序时发生。

Closed

关闭 ContentIsland 时发生。

Connected

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

Disconnected

具有独立输入、输出、布局和可访问性且连接到父 ContentSite 的自包含内容片段。

FrameworkClosed

框架关闭时发生。

StateChanged

当此 ContentIsland 的状态属性发生更改时发生。

适用于