.net – Stop double click from happening after single click

double-clicknetwpf

I developing an application in WPF where a single click on an item will change the view to something else. The problem is that if the user double clicks on the item, the first event will be the single click that opens the other view and the next event will be the double click on the new view. This double click on the new view will cause other things to happen.
So, the question is;
Can I stop the double click from happening after I get the single click event to my first view? I have tried to set Handled = true on the MouseButtonEventArgs in the single click method but that does not work. The other view will still get the double click and random things will still happen. Any smart solution of my problem out there?

/Daniel

Best Answer

RaymondChen is once again a valuable source.

I suggest you read the linked half second delay article for deeper details but that one shows how the delay manifests itself to the user.