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
604
Clicking & DoubleClicking on LabelPresenter
posted

Hi,

I need the following functionality:

on 1 click on label - sort

on double click - some other functionality.

I set  LabelClickAction="Sort"

and also implemented the following:

EventManager.RegisterClassHandler(typeof(LabelPresenter), LabelPresenter.MouseDoubleClickEvent, new RoutedEventHandler(onHeaderDoubleClick));

When I double click on the label I see the following:

the field is sorted twice and the MouseDoubleClickEvent is fired.

Question: how can I prevent the double-sorting when I double-click on the label? Isn't there some kind of time interval that helps to distinguish between fast 2 separate clicks and one double-click?

Thanks