Double click event. you can change the interval time.
piCanv.PreviewMouseLeftButtonUp += new MouseButtonEventHandler(Canvas_PreviewMouseLeftButtonUp);
int priviewTimestamp = -1;
const int iDoubleClickInterval = 500;
private void Canvas_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
if (priviewTimestamp > 0)
{
if (e.Timestamp - priviewTimestamp < iDoubleClickInterval)
{
}
priviewTimestamp = e.Timestamp;
}
else
priviewTimestamp = e.Timestamp;
}