I have a XamDataTree that is setup for multiple selection. When the user single left clicks without ctrl or shift pressed, the tree seems to clear the selection then select the clicked node. I need to run specialized code immediately before this clear happens.
I have not found a SelectedNodesCollectionChanging event.
Any advice on how to add this would be appreciated.
**********************
I think the above is sufficient, but just to add some more detail...
I am using MVVM binding for tree nodes using the IsSelected property. The root of the problem is that the viewmodel for a tree item can't tell the difference between "a user manually unselected just me" and "I am being unselected as part of clearing the tree". I can manage this myself if I know it is happening, but need some sort of hook when is going on.
Hello Patrick,
Currently, the XamDataTree does not have a built in event that fires exclusively as the SelectedNodes collection is changing. However, being that your user is utilizing a single left click without ctrl or shift pressed, the node that is clicked will become Active. There is an ActiveNodeChanging event that you can use, and I have verified that the XamDataTree’s selected nodes collection is not modified while this event fires. Also, through the event arguments of the ActiveNodeChanging event, you can retrieve the cell to be activated.
I hope this helps you.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support Engineer IInfragistics Inc.www.infragistics.com/support
Just checking in, did you have any other questions or concerns on this matter?