Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
MouseButtonEventArgs Class

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
Public NotInheritable Class MouseButtonEventArgs _
    Inherits MouseEventArgs
Visual Basic (Usage)
Dim instance As MouseButtonEventArgs
C#
public sealed class MouseButtonEventArgs : MouseEventArgs

MouseButtonEventArgs defines Handled, which is relevant for marking a UIElement..::.MouseLeftButtonDown or UIElement..::.MouseLeftButtonUp event as handled. Handling the event prevents typical handlers further along the route from acting on the same event occurence. For details on how to mark mouse events as handled, see Mouse Support.

Silverlight 2 does not expose right mouse-button events, because these are not relevant for some of the platforms where Silverlight can be used. Therefore the Silverlight version of MouseButtonEventArgs does not report ButtonState or a number of the other concepts supported under WPF.

System..::.Object
  System..::.EventArgs
    System.Windows..::.RoutedEventArgs
      System.Windows.Input..::.MouseEventArgs
        System.Windows.Input..::.MouseButtonEventArgs
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker