TreeListView ClassDW.WPFToolkit Documentation
Shows the EnhancedTreeView with the possibity to expand or collapse child elements shown in a GridView. The expander can be placed in every column cell template.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              System.Windows.ControlsItemsControl
                System.Windows.ControlsTreeView
                  DW.WPFToolkit.ControlsEnhancedTreeView
                    DW.WPFToolkit.ControlsTreeListView

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public class TreeListView : EnhancedTreeView

The TreeListView type exposes the following members.

Constructors

  NameDescription
Public methodTreeListView
Initializes a new instance of the TreeListView class
Top
Methods

  NameDescription
Protected methodGetContainerForItemOverride
Generates a new child item container to hold in the TreeListView.
(Overrides EnhancedTreeViewGetContainerForItemOverride.)
Protected methodIsItemItsOwnContainerOverride
Checks if the item is already the correct item container. If not the GetContainerForItemOverride will be used to generate the right container.
(Overrides EnhancedTreeViewIsItemItsOwnContainerOverride(Object).)
Top
Fields

  NameDescription
Public fieldStatic memberViewProperty
Identifies the View dependency property.
Top
Properties

  NameDescription
Public propertyView
Gets or sets the GridView shown in the control.
Top
Examples

XAML
<WPFToolkit:TreeListView ItemsSource="{Binding Customer}">
    <WPFToolkit:TreeListView.Resources>
        <HierarchicalDataTemplate DataType="{x:Type Data:Customer}" ItemsSource="{Binding Customer}" />
    </WPFToolkit:TreeListView.Resources>
    <WPFToolkit:TreeListView.View>
        <GridView>
            <GridViewColumn Header="Name">
                <GridViewColumn.CellTemplate>
                    <DataTemplate>
                        <DockPanel>
                            <WPFToolkit:TreeListViewExpander DockPanel.Dock="Left" />
                            <TextBlock Text="{Binding Name}" Margin="5,0,0,0" />
                        </DockPanel>
                    </DataTemplate>
                </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Family Name" DisplayMemberBinding="{Binding FamilyName}" />
        </GridView>
    </WPFToolkit:TreeListView.View>
</WPFToolkit:TreeListView>
See Also

Reference