UIElement.XamlRoot Property
Definition
Gets or sets the XamlRoot in which this element is being viewed.
Equivalent WinUI property: Microsoft.UI.Xaml.UIElement.XamlRoot.
public:
property XamlRoot ^ XamlRoot { XamlRoot ^ get(); void set(XamlRoot ^ value); };
XamlRoot XamlRoot();
void XamlRoot(XamlRoot value);
public XamlRoot XamlRoot { get; set; }
var xamlRoot = uIElement.xamlRoot;
uIElement.xamlRoot = xamlRoot;
Public Property XamlRoot As XamlRoot
Property Value
The XamlRoot in which this element is being viewed. The default is null.
Windows 10 requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|