Hi,
I have a problem with the XamDataTree.
I have an editor to modify my Entity propreties where i can choose the Parent element in a XamDataTree. But when i choose an other parent, my tree is modified automatically, it moves my current entity on it new parent.
I don't want the DataTree change for different reasons. So how can i do that ?
Thanks a lot for response.
Cedric
I don't think that is possible, because the XamDataTree is a data bound control and always reflect the structure of its data source. So it is also not recommended to do that in order to ensure the correct functioning of the control.
Maybe you should try building a custom data source object which does not change when you change the parent in the Entity and implement a logic which refreshes the data source when you need to.
HTH,
Thanks for answer.
More specificaly, my problem is that : I disable chidren's nodes on my tree. But when i choose an other Parent, the children's tree become enable. I don't found any event on the control to catch that and to disable nodes. How can i do that ?
If no solution can be found in this way, i'll try to do your solution.
Thanks a lot.
Cédric