Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Binding Active Dataitem and Selecting items from code behind

I have two questions:

1) Can the ActiveDataItem property of the XamDataTree be bound to a property in the viewmodel

2) At the moment I'm setting the active node setting the ActiveDataItem property from code behind, but I haven't found the something like a Selected Node, or selected data item or something to allow me to activate and select a node on the tree from code behind or using the view model.

changing the active data item puts the active border around a node and makes it visible if it was not before but when the node is clicked it is not only activated but also selected.

is there a way to achieve this using the view model or the code behind.

Also, is it possible somehow access the Tree Node connected to the active data item?

thank you in advance

Parents Reply Children