How to check if mouse is over a button in WPF? [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Time Delay on Trigger I am using a few buttons in WPF for displaying images from various folders. The Click mode for all the buttons is Hover . For some button, after hovering, it is routed to a function OnButtonClick . What I want to do is, ONLY after the mouse is over the button for X seconds, the processing inside the function OnButtonClick should be done. EDIT: XAML Code: <Button Name="Dresses" Content=