Udostępnij za pośrednictwem


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)]
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
Inheritance
Object Platform::Object IInspectable 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