Mouse Handling

You're unlikely to see a Silverlight application that doesn't use the MouseLeftButtonDown event. However, there's still a lot more to learn about handling the mouse events. In the following sections, you'll consider how you can react to right-clicks, mouse movement, and the mouse wheel. You'll also learn how to capture the mouse—so you can continue handling its events even when it moves away—how to simulate drag and drop and how to change the mouse cursor.

Right-Clicks

By default, when you right-click anywhere in a Silverlight application, a pop-up Silverlight menu appears. This menu includes a single command named Silverlight, which opens a tabbed window where you can change Silverlight settings. Additionally, if you've created ...

Get Pro Silverlight 5 in VB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.