Double Click in Silverlight (by Ary)
Ary has just wrote a very useful post about supporting double click events in Silverlight 2.0. The approach he presents is really interesting and takes advantage of attached properties in order to provide clean usage.
In fact the implementation supports not only double clicks, but multiple clicks being able to specify the max number of clicks we want to receive, and the number of actual clicks are received in the event handlers.
There were previous approaches but the Ary’s one feels much more natural to use.
I wish Microsoft adds support for this kind of basic events in the final release. However in this way we don’t have to miss these useful gestures.
Good job Ary!
Posted: June 25th, 2008 under Silverlight.
Comments: none