We are using the xamDataTree and would like the node to expand/collapse on a double click. Is there a simple way to do this?
Thanks,Doug Rees
Polo Ralph Lauren.
Hello Doug,
I have been looking into this for you and handling the MouseDoubleClick event of the XamDataTree seems to be the simplest way. Here is a code snippet that does what you need:
private void xamDataTree1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
{
xamDataTree1.ActiveNode.IsExpanded = !xamDataTree1.ActiveNode.IsExpanded;
}
Please let me know if I can assist you any further on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hello,
Do you have a more suitable solution?
This isn't clean, Its raised when you double click everywhere on the XamDataTree.
Do you have something better?