Class HierarchicalDataTemplate
Represents a DataTemplate that supports HeaderedItemsControl objects, such as TreeViewItem.
Inherited Members
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public class HierarchicalDataTemplate : DataTemplate
Constructors
| Improve this Doc View SourceHierarchicalDataTemplate()
Initializes a new instance of the HierarchicalDataTemplate class.
Declaration
public HierarchicalDataTemplate()
Properties
| Improve this Doc View SourceItemContainerStyle
Gets or sets the Style that is applied to the item container for each child item.
Declaration
public Style ItemContainerStyle { get; set; }
Property Value
Type | Description |
---|---|
Style | The style that is applied to the item container for each child item. |
ItemsSource
Gets or sets the collection that is used to generate content for the next sublevel in the data hierarchy.
Declaration
public Binding ItemsSource { get; set; }
Property Value
Type | Description |
---|---|
Binding | The collection that is used to generate content for the next sublevel in the data hierarchy. The default value is null. |
ItemTemplate
Gets or sets the DataTemplate to apply to the ItemTemplate property on a generated HeaderedItemsControl, such as a TreeViewItem, to indicate how to display items from the next sublevel in the data hierarchy.
Declaration
public DataTemplate ItemTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | The DataTemplate to apply to the ItemTemplate property on a generated HeaderedItemsControl, such as a TreeViewItem, to indicate how to display items from the next sublevel in the data hierarchy. |