MouseDown Duration
-
Is it possible to measure how long the mouse buttons have been held down? I have added the MyClass_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) event handler and can see a e.timestamp, but cant find how to extract how long the mouse has been held down from this. If the user holds the mousedown for 1 or more second I want to trigger code, but under 1 second do nothing.
-
Is it possible to measure how long the mouse buttons have been held down? I have added the MyClass_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) event handler and can see a e.timestamp, but cant find how to extract how long the mouse has been held down from this. If the user holds the mousedown for 1 or more second I want to trigger code, but under 1 second do nothing.