Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Mouse Events

The five mouse events supported by all UI elements are MouseMove, MouseEnter, MouseLeave, MouseLeftButtonDown, and MouseLeftButtonUp. With these five events, you can implement a wide range of behaviors: rollover (mouse hover) effects, drag-and-drop, and decent versions of just about any common control missing from Silverlight 1.0 (buttons, check boxes, scrollbars, and more).

Note that Silverlight has no Click event, but MouseLeftButtonDown (or MouseLeftButtonUp) can serve the same purpose. Also, there are no events corresponding to the right mouse button. Right-clicking on the Silverlight control gives the standard context menu for configuring the add-on, and that behavior can’t be customized in version 1.0.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial