O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required