[WPF] How to expand all TreeView nodes?

  • Thread starter Thread starter Alexander Vasilevsky
  • Start date Start date
Alexander said:
[WPF] How to expand all TreeView nodes?

No idea if it's any different under WPF, but the "old fashioned" way to
do this would be to set the Expanded property on each TreeNode as you
add it to the TreeView.

HTH,
Phill W.
 
Alexander Vasilevsky said:
[WPF] How to expand all TreeView nodes?

AFAIS the WPF 'TreeView' class does not have an 'ExpandAll' method. Thus
you'd have to loop through the nodes and set their 'IsExpanded' properties
to 'True'.
 
Back
Top