VisualTree

Can i replace between regular TreeLayout and VisualTree dynamically?



Thanks.

I’m sorry, but I don’t understand your question.

What exactly do you want to change dynamically within your application?

i will use your example:

i have a tree like “org chart static”, that uses a treeModel.

i want to change the layout to another view, like “VisualTree”, that uses VisualTreeModel,



How can i do that?



Thanks.

VisualTreeModel exists because it wants to interpret as a diagram model the reflection information that the .NET runtime provides in memory. I think you could adapt the templates and button event handler from the Visual Tree sample in your own application, without using the VisualTreeModel at all.