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
355
Prescribed method for handling mouse double-click for Silverlight XamTree? (IG 10.2)
posted

In Infragistics 10.2 for Silverlight, what is the prescribed method for determining that a user has performed a double-click on a tree item (node)?  I cannot find something like a MouseLeftDoubleClick event for the XamTree.

I would like to be able to detect and handle a mouse double-click for a node in a Silverlight XamTree.  The idea is to perform a specific action upon a user double-clicking on an item as a shortcut for single-clicking to select the item and then pressing a button.

 

Parents
  • 28407
    posted

    HI,

     SilverLight does not have a double-click event..

    So I came up with a workaround.

    I used  global variable to keep track of the last time a click happened. 

    I used MouseLeftButtonup and the SelectionChanged events to keep track of the time of the last click.

     If the time between clicks was under  .65 seconds a double click occured.

     I am attaching a sample application.

     Sincerely,
     Matt
     Developer Support Engineer

    SilverlightApplication5.rar
Reply Children