XamlRoot Class

Definition

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

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class XamlRoot
Inheritance
Object XamlRoot
Attributes

Properties

Content

Gets the root element of the XAML element tree.

ContentIslandEnvironment

Gets general environment information for the content island.

CoordinateConverter
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

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6