FrameworkTemplate.VisualTree 속성

정의

템플릿의 루트 노드를 가져오거나 설정합니다.

public:
 property System::Windows::FrameworkElementFactory ^ VisualTree { System::Windows::FrameworkElementFactory ^ get(); void set(System::Windows::FrameworkElementFactory ^ value); };
public System.Windows.FrameworkElementFactory VisualTree { get; set; }
member this.VisualTree : System.Windows.FrameworkElementFactory with get, set
Public Property VisualTree As FrameworkElementFactory

속성 값

FrameworkElementFactory

템플릿의 루트 노드입니다.

설명

XAML 속성 요소 사용

<object>  
  <VisualTreeRootNode > VisualTreeNodeContents  
  </VisualTreeRootNode >  
</object>  

XAML 값

VisualTreeRootNode
서브클래스의 FrameworkTemplate 직계 자식인 단일 XAML 요소입니다. 템플릿에는 단일 루트 노드가 있어야 합니다. 유용한 템플릿을 생성하기 위해 VisualTreeRootNode 로 선택한 요소는 여러 자식 요소를 지원하는 모델인 자체 콘텐츠 모델을 지원해야 합니다.

VisualTreeNodeContents
원하는 템플릿을 완료하는 하나 이상의 요소입니다. VisualTreeRootNode 로 선택한 요소가 단일 자식만 지원하는 경우 VisualTreeNodeContents 로 선언된 요소는 하나만 있을 수 있습니다. 선택한 VisualTreeRootNode 가 텍스트 콘텐츠 속성을 지원하는 경우 텍스트 콘텐츠를 제공할 수도 있습니다(일반적이지는 않지만).

적용 대상