I have a button_click
event and a button_PreviewMouseLeftButtonDown
event. I want to set a timer for my button_PreviewMouseLeftButtonDown
event. If the user's mouse is down for more than 1 second, then my code executes the button_PreviewMouseLeftButtonDown
event. How can I accomplish this?
Asked
Active
Viewed 2,782 times
0
-
Hi.... well... basically, just as you say. It's exactly like that :-) – Stefan Aug 27 '18 at 21:27
-
So if it is less than one second then it should do only button click? – Chetan Aug 27 '18 at 21:34
-
Does this answer your question? [How do I create a timer in WPF?](https://stackoverflow.com/questions/11559999/how-do-i-create-a-timer-in-wpf) – StayOnTarget Oct 21 '21 at 15:03