TreeView.ItemTemplate Property

Definition

Gets or sets the DataTemplate used to display each item.

C#
public DataTemplate ItemTemplate { get; set; }
XAML
<TreeView>
  <TreeView.ItemTemplate>
    singleDataTemplate
  </TreeView.ItemTemplate>
</TreeView>

Property Value

The template that specifies the visualization of the data objects. The default is null.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6