menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HierarchicalDataTemplate - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HierarchicalDataTemplate

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

    Inheritance
    System.Object
    HierarchicalDataTemplate
    Namespace: Syncfusion.Windows.Primitives
    Assembly: Syncfusion.SfShared.Wpf.dll
    Syntax
    public class HierarchicalDataTemplate : DataTemplate

    Constructors

    HierarchicalDataTemplate()

    Initializes a new instance of the WinRTXamlToolkit.Controls.Data.HierarchicalDataTemplate

    Declaration
    public HierarchicalDataTemplate()

    Properties

    ItemContainerStyle

    Gets or sets the System.Windows.Style that is applied to the item container for each child item.

    Declaration
    public Style ItemContainerStyle { get; set; }
    Property Value
    Type Description
    System.Windows.Style

    The style that is applied to the item container for each child item.

    ItemsSource

    Gets or sets the values for the item source

    Declaration
    public Binding ItemsSource { get; set; }
    Property Value
    Type
    System.Windows.Data.Binding

    ItemTemplate

    Gets or sets the System.Windows.DataTemplate to apply to the System.Windows.Controls.ItemsControl.ItemTemplate property on a generated System.Windows.Controls.HeaderedItemsControl, such as a System.Windows.Controls.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
    System.Windows.DataTemplate

    The System.Windows.DataTemplate to apply to the System.Windows.Controls.ItemsControl.ItemTemplate property on a generated System.Windows.Controls.HeaderedItemsControl, such as a System.Windows.Controls.TreeViewItem, to indicate how to display items from the next sublevel in the data hierarchy.

    Template

    Gets or sets the value for the template

    Declaration
    public DataTemplate Template { get; set; }
    Property Value
    Type
    System.Windows.DataTemplate
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved