tags:

views:

614

answers:

1

I might be suffering of Monday's dumbness, but I can't find a nice way of expanding all treeview nodes after I've added them in code behind (something like treeView.ExpandAll()).

Any quick help?

+2  A: 

WPF doesn't have an ExpandAll method. You'll need to loop through and set the property on each node.

See this question or this blog post.

Nate