XamlRoot Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class XamlRoot final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class XamlRoot
Public NotInheritable Class XamlRoot
- Inheritance
- Attributes
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Content |
Gets the root element of the XAML element tree. |
Is |
Gets a value that indicates whether the XamlRoot is visible. |
Rasterization |
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. |
UIContext |
Gets the context identifier for the view. |
Changed |
Occurs when a property of XamlRoot has changed. |
Product | Versions |
---|---|
WinRT | Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |