XamlRoot 類別

定義

表示 XAML 內容的樹狀結構,以及其裝載所在內容的相關信息。

public ref class XamlRoot sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class XamlRoot final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class XamlRoot
Public NotInheritable Class XamlRoot
繼承
Object Platform::Object IInspectable XamlRoot
屬性

屬性

Content

取得 XAML 專案樹狀結構的根元素。

ContentIslandEnvironment

取得內容島的一般環境資訊。

IsHostVisible

取得值,這個值表示 XamlRoot 是否可見。

RasterizationScale

取得值,表示每個檢視圖元的原始 (實體) 像素數目。

Size

取得內容區域的寬度和高度。

事件

Changed

發生於 XamlRoot 的屬性已變更時。

適用於