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
單一 XAML 專案做為子類別的 FrameworkTemplate 直接子系。 範本必須有單一根節點。 為了產生有用的範本,選擇為 VisualTreeRootNode 的專案應該支援自己的內容模型,通常是支援多個子項目的模型。

VisualTreeNodeContents
完成預定範本的一或多個元素。 如果選擇為 VisualTreeRootNode 的元素只支援單一子系,則只能有一個宣告為 VisualTreeNodeContents 的元素。 如果選擇的 VisualTreeRootNode 支援文字內容屬性,也可能 () 提供文字內容。

適用於