XamlRoot Class

Definition

Represents a tree of XAML content and information about the context in which it is hosted.

public ref class XamlRoot sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class XamlRoot final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class XamlRoot
Public NotInheritable Class XamlRoot
Inheritance
XamlRoot
Attributes
Windows.Foundation.Metadata.ContractVersionAttribute Windows.Foundation.Metadata.MarshalingBehaviorAttribute Windows.Foundation.Metadata.WebHostHiddenAttribute

Properties

Content

Gets the root element of the XAML element tree.

IsHostVisible

Gets a value that indicates whether the XamlRoot is visible.

RasterizationScale

Gets a value that represents the number of raw (physical) pixels for each view pixel.

Size

Gets the width and height of the content area.

Events

Changed

Occurs when a property of XamlRoot has changed.

Applies to