May 7, 2009 at 8:06 PM
Edited May 8, 2009 at 7:13 PM
In my personal opinion the best approach would be using a command with an attached behavior. As frantic0 said, there is no double click
event is Silverlight, so you will have to “simulate” the double click event.
explains how to create an attached behavior for a command in a Silverlight 3 DataForm, but it should help you create your behavior.
To simulate the double click you could write a similar code to the following behavior:
dataGrid.MouseLeftButtonDown += OnMouseLeftButtonDown;
- this.lastClickTicks) < 5000000)
this.lastClickTicks = 0;
You can read more about command attached behaviors in these articles:
ICommand for Silverlight with Attached
Please let me know if this helps.