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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.