Hi Guys
I'm currently using databinding on a treeview with HierarchicalDataTemplates. All works well. But i want to have more control of the template based on the node selected. FYI I use on demand loading and have templates for all the different data types
For example, i want a tree to look like this (high level set, different types binded)
A---- type1
B --- Type2 -----type1
------ type1
C ---- Type2 ------type 1
------type 1
I have captured the event when the high level nodes are click. Depending on which node is selected (If A then show data as per type1 or if B or C then show data as per type 2). What makes this a little more complex is that type 2 child is type 1.
So is there are way to control the the binding and view programmatically.
Simon
I'm currently using databinding on a treeview with HierarchicalDataTemplates. All works well. But i want to have more control of the template based on the node selected. FYI I use on demand loading and have templates for all the different data types
For example, i want a tree to look like this (high level set, different types binded)
A---- type1
B --- Type2 -----type1
------ type1
C ---- Type2 ------type 1
------type 1
I have captured the event when the high level nodes are click. Depending on which node is selected (If A then show data as per type1 or if B or C then show data as per type 2). What makes this a little more complex is that type 2 child is type 1.
So is there are way to control the the binding and view programmatically.
Simon