.NET Framework Class Library for Silverlight
MouseButtonEventArgs Class

Namespace:  System.Windows.Input
Assembly:  System.Windows (in System.Windows.dll)
Syntax

Visual Basic (Declaration)
Public NotInheritable Class MouseButtonEventArgs _
    Inherits MouseEventArgs
Visual Basic (Usage)
Dim instance As MouseButtonEventArgs
C#
public sealed class MouseButtonEventArgs : MouseEventArgs
Remarks

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.

Inheritance Hierarchy

System..::.Object
  System..::.EventArgs
    System.Windows..::.RoutedEventArgs
      System.Windows.Input..::.MouseEventArgs
        System.Windows.Input..::.MouseButtonEventArgs
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

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

See Also

Reference

Other Resources

Tags :


Page view tracker