WPF #1,219 - Expanding All Nodes in a TreeView by Default

added by DotNetKicks
9/29/2017 1:31:48 PM

2 Kicks, 230 Views

Normally, when you display a TreeView, the nodes are collapsed by default and the user clicks on the expander widgets to expand nodes that they want to look at. You can expand all nodes in the TreeView by default by setting up an ItemContainerStyle for the TreeView and specifying that you want each TreeViewItem expanded.