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
1360
Double Click to Expand Node
posted

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.

Parents
  • 27093
    posted

    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

     

Reply Children
No Data