共用方式為


ContentIsland 類別

定義

獨立輸入、輸出、配置和協助工具處理 (的自封 式子視窗) ,限制在其父 ContentSite 系 的工作區。

[WebHostHidden]
public ref 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, 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
Public Class ContentIsland
Implements IClosableNotifier, ICompositionSupportsSystemBackdrop, IDisposable
繼承
Object Platform::Object IInspectable ContentIsland
屬性
實作

備註

ContentIsland通常用來將 分割 ContentSite 成不同的功能區域, (類似WS_CHILD樣式 HWND) 與 Microsoft.UI.Composition 以動畫為基礎的動畫、轉譯效果和互動式操作。

屬性

ActualSize

取得 的邏輯大小 ContentIsland ,如 所 ContentSite 決定。

AppData

取得或設定這個 ContentIsland 的儲存體容器。

CoordinateConverter

取得此 ContentCoordinateConverterContentIsland

CustomProperties

取得 的自訂屬性 ContentIsland 集。

DispatcherQueue

取得與這個 DispatcherQueue 關聯的 ContentIsland

Environment

取得與這個 ContentIslandEnvironment 關聯的 ContentIsland

Id

取得這個 ContentIsland 的唯一識別碼。

IsClosed

取得這個 是否 ContentIsland 關閉。

IsConnected

取得這個 ContentIsland 是否連接到 ContentSite

IsHitTestVisibleWhenTransparent

取得或設定當未顯示任何內容時,這個 ContentIsland 是否支援視覺點擊測試。

IsIslandEnabled

取得或設定這個 ContentIsland 是否可以接收輸入。

IsIslandVisible

取得或設定這個 ContentIsland 是否由相關聯的 ContentSite 顯示。

IsSiteEnabled

取得 是否可以 ContentSite 接收輸入。

IsSiteVisible

取得關聯是否 ContentSite 可見。

LayoutDirection

取得 中讀取順序和文字對齊的 ContentSite 版面配置方向。

RasterizationScale

取得 的本機點 (DPI) Microsoft.UI.Composition.ICompositionSurface

SystemBackdrop

取得或設定要套用至這個 的系統底板 ContentIsland

方法

Close()

關閉 ContentIsland

Create(Visual)

ContentIsland 中斷連線和空白狀態建立 。

Dispose()

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

FindAllForCompositor(Compositor)

傳回與指定 Microsoft.UI.Composition.Compositor 關聯的所有 ContentIsland 物件。

FindAllForCurrentThread()

傳回目前線程所擁有的所有 ContentIsland 物件。

GetAutomationHostProvider()

取得與 ContentIsland 相關聯的主機自動化提供者。

GetByVisual(Visual)

擷取 , ContentIsland 其中包含目前線程上指定的子視覺物件。

GetFromId(UInt64)

ContentIsland 取具有指定識別碼的 。

GetStateChangeDeferral()

ContentDeferral 取 物件,這個物件會啟用個別屬性的非同步更新,而不會引發 StateChanged 事件,直到延遲完成為止。

RequestSize(Vector2)

ContentSite 擷取 的新大小 ContentIsland

事件

AutomationProviderRequested

發生于要求這個 ContentIsland 的自動化提供者時。

Closed

發生於關閉 ContentIsland 時。

FrameworkClosed

發生于架構關閉時。

StateChanged

發生于這個 ContentIsland 的狀態屬性變更時。

適用於