Icon

DlhSoft Hierarchical Data Library

for Windows® Presentation Foundation (WPF) and .NET 4

TreeListView Control

TreeListView control is used to display and update a list of node items, and it is part of Hierarchical Data Library for WPF 4, and Hierarchical Data Library for WPF 3.5.


Screenshots and Intro Source Code

  • Basic usage:

    TreeListView basic usage

    <hdc:TreeListView>
        <hdc:TreeListView.View>
            <GridView>
                <hdc:TreeGridViewColumn Header="Node" DisplayMemberBinding="{Binding Content}"/>
                <GridViewColumn Header="Indentation" DisplayMemberBinding="{Binding Indentation}"/>
                <GridViewColumn Header="Is expanded" DisplayMemberBinding="{Binding IsExpanded}"/>
            </GridView>
        </hdc:TreeListView.View>
        <pd:NodeItem Content="Node 1"/>
        [...]
        <pd:NodeItem Content="Node 2" IsExpanded="True"/>
        <pd:NodeItem Content="Node 2.1" Indentation="1"/>
        <pd:NodeItem Content="Node 2.2" Indentation="1"/>
        <pd:NodeItem Content="Node 2.3" Indentation="1" IsExpanded="True"/>
        <pd:NodeItem Content="Node 2.3.1" Indentation="2"/>
        <pd:NodeItem Content="Node 2.3.2" Indentation="2"/>
    </hdc:TreeListView>

  • Custom data binding:

    TreeListView custom data binding
  • Column templating:

    TreeListView column templating
  • Statistics:

    TreeListView statistics
  • Selection:

    TreeListView selection
  • Commands:

    TreeListView commands
  • Styling:

    TreeListView styling
  • Grid lines:

    TreeListView grid lines
  • Control templating
    (based on Generic and/or other themes from default controls styles and templates archive):

    TreeListView control templating
Terms of Use Privacy Statement