Quantcast
Viewing latest article 7
Browse Latest Browse All 9

Simple double click in Silverlight

I needed to pick up on a double click on an image in Silverlight but there is no event to handle this. It can be done quite easily using a DispatchTimer.  I am doing this for an image but you should be able to do it for any UIElement. First I have imported the System.Windows.Theading namespace where the DispatchTimer lives.  In the constructor of the User Control containing the image I have instantiated the Timer and set its interval to 200 …

Viewing latest article 7
Browse Latest Browse All 9

Trending Articles