UIElement.XamlRoot 속성

정의

이 요소를 볼 을 가져오거나 설정합니다 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

속성 값

XamlRoot 이 요소를 볼 입니다. 기본값은 null입니다.

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1903 (10.0.18362.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v8.0에서 도입되었습니다.)

설명

UIElement 처음 만들어지면 를 XamlRoot 반환합니다 null. 라이브 XAML 개체에 부모로 지정되면 부모 개체와 동일한 XamlRoot 개체를 반환합니다. 의 일반적인 시나리오 XamlRootnull 는 앱 생성자에서 속성에 액세스하는 경우입니다.

적용 대상