Search code examples
wpfmouseeventdouble-click

Distinguish between mouse doubleclick and mouse click in wpf


In my WPF application , I am using ListView GridView, and I implemented a functionality that is associated to mouse double click. Is there a way, or a control that distinguish between the mouse double click and mouse click?

I used a button, and implemented an event for mousedoubleclick, but the click event is still triggering

Thanks for help


Solution

  • It seems you just add the MouseDoubleClick= attribute. Check these links out:

    Sorry if I misunderstood your question.