Quantcast
Channel: 2,000 Things You Should Know About WPF » Mouse Events
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

#655 – Bubbling Mouse Events Swallowed by Some Controls

When you click a mouse button on a Label control, you’ll see a series of tunneling and bubbling events, as shown below. However, if you click a mouse button on a TextBox control, you’ll only see some...

View Article


Image may be NSFW.
Clik here to view.

#657 – Detecting Double Clicks in User Interface Elements

You can react to a user double-clicking on a user interface element by handling one of the mouse button events and checking the MouseButtonEventArgs.ClickCount field.  When a user double-clicks on an...

View Article


Image may be NSFW.
Clik here to view.

#685 – Capturing the Mouse

When you are handling mouse events, the event is generally fired by the control that the mouse is over.  For example, if you hold down the mouse button over one control, move the mouse, and release...

View Article

Image may be NSFW.
Clik here to view.

#687 – What Happens If You Forget to Release The Mouse

A user interface element can capture the mouse, asking to receive all future mouse events, no matter where the mouse cursor is located.  You’ll typically capture the mouse in a mouse down or related...

View Article
Browsing latest articles
Browse All 4 View Live


Latest Images