TreeView « Windows Presentation Foundation « C# / C Sharp






1.TreeView uses SelectedValuePath property to provide a SelectedValue for the SelectedItem.TreeView uses SelectedValuePath property to provide a SelectedValue for the SelectedItem.
2.TreeView with DataSourceTreeView with DataSource
3.TreeView And TreeViewItemTreeView And TreeViewItem
4.Create a Tree and add childrenCreate a Tree and add children
5.Add Ellipse, TextBlock to a TreeAdd Ellipse, TextBlock to a Tree
6.Mark Tree node expandableMark Tree node expandable
7.Bind a TreeView to a data source and use DataTemplate objects to customize the TreeView.Bind a TreeView to a data source and use DataTemplate objects to customize the TreeView.
8.Handles the Selected event for all TreeViewItemsHandles the Selected event for all TreeViewItems
9.Set TreeView with TreeViewItemSet TreeView with TreeViewItem








10.View and Select Items Using a TreeView and Select Items Using a Tree
11.Get selected tree node itemGet selected tree node item