Show / Hide Table of Contents

Class HierarchicalDataTemplate

Represents a DataTemplate that supports HeaderedItemsControl objects, such as TreeViewItem.

Inheritance
System.Object
DependencyObject
FrameworkTemplate
DataTemplate
HierarchicalDataTemplate
Inherited Members
DataTemplate.DataType
DataTemplate.LoadContent()
FrameworkTemplate.Seal()
FrameworkTemplate.IsSealed()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public class HierarchicalDataTemplate : DataTemplate, IDependencyObject

Constructors

| Improve this Doc View Source

HierarchicalDataTemplate()

Initializes a new instance of the HierarchicalDataTemplate class.

Declaration
public HierarchicalDataTemplate()

Properties

| Improve this Doc View Source

ItemContainerStyle

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source