[WPF] How to expand all TreeView nodes?

  • Thread starter Alexander Vasilevsky
  • Start date
P

Phill W.

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.
 
H

Herfried K. Wagner [MVP]

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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top