Class
MouseButtonEventArgs

Provides data for various events that report changes to the mouse wheel delta value of a mouse device.

Definition

Namespace:Telerik.UI.Xaml.Controls.Input

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class MouseButtonEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsMouseButtonEventArgs

Inherited Members RadRoutedEventArgs.InvokeEventHandler(Delegate, object)RadRoutedEventArgs.OnSetSource(object)RadRoutedEventArgs.RoutedEventRadRoutedEventArgs.SourceRadRoutedEventArgs.OriginalSource

Properties

ButtonState

Gets the state of the button associated with the event.

Declaration

cs-api-definition
public MouseButtonState ButtonState { get; }

Property Value

MouseButtonState

ChangedButton

Gets the button associated with the event.

Declaration

cs-api-definition
public MouseButton ChangedButton { get; }

Property Value

MouseButton

ClickCount

Gets the number of times the button was clicked.

Declaration

cs-api-definition
public int ClickCount { get; }

Property Value

int

Handled

Gets or sets a value that marks the routed event as handled, and prevents most handlers along the event route from handling the same event again.

Declaration

cs-api-definition
public bool Handled { get; set; }

Property Value

bool

true to mark the routed event handled. false to leave the routed event unhandled, which permits the event to potentially route further and be acted on by other handlers. The default is false.

Methods

GetPosition(UIElement)

Returns the x- and y-coordinates of the mouse pointer position, optionally evaluated against a coordinate origin of a supplied UIElement />.

Declaration

cs-api-definition
public Point GetPosition(UIElement relativeTo)

Parameters

relativeTo

UIElement

Returns

Point