Share via


4.376 HierarchicalDataTemplate

x:Object > FrameworkTemplate > DataTemplate > HierarchicalDataTemplate
HierarchicalDataTemplate
(usage)
<HierarchicalDataTemplate> FrameworkElement </HierarchicalDataTemplate>
(description)
Represents a DataTemplate that supports HeaderedItemsControl, such as TreeViewItem or MenuItem.
[content property]
Template
[dictionary key property]
DataTemplateKey
[is name scope]
true
(properties)
AlternationCount
x:Int32
(description)
The number of alternating item containers for the child items.
ItemBindingGroup
BindingGroup
(description)
The BindingGroup that is copied to each child item.
ItemContainerStyle
Style
(description)
The Style that is applied to the item container for each child item.
ItemContainerStyleSelector
StyleSelector
(description)
Custom style-selection logic for a style that can be applied to each item container.
ItemsSource
BindingBase
(description)
The binding for this data template, which indicates where to find the collection that represents the next level in the data hierarchy.
ItemStringFormat
x:String
(description)
A composite string that specifies how to format the items in the next level in the data hierarchy if they are displayed as strings.
ItemTemplate
DataTemplate
(description)
The DataTemplate to apply to the ItemTemplate property on a generated HeaderedItemsControl (such as a MenuItem or a TreeViewItem), to indicate how to display items from the next level in the data hierarchy.
ItemTemplateSelector
DataTemplateSelector
(description)
The DataTemplateSelector to apply to the ItemTemplateSelector property on a generated HeaderedItemsControl (such as a MenuItem or a TreeViewItem), to indicate how to select a template to display items from the next level in the data hierarchy.