Show / Hide Table of Contents

Class MouseEventArgs

Base arguments for mouse events

Inheritance
System.Object
RoutedEventArgs
InputEventArgs
MouseEventArgs
MouseButtonEventArgs
MouseWheelEventArgs
Inherited Members
InputEventArgs.Timestamp
RoutedEventArgs.RoutedEvent
RoutedEventArgs.Handled
RoutedEventArgs.Source
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class MouseEventArgs : InputEventArgs

Constructors

MouseEventArgs(MouseStateBase, Double, RoutedEvent)

Initializes a new instance of the MouseEventArgs class.

Declaration
public MouseEventArgs(MouseStateBase state, double timestamp, RoutedEvent routedEvent)
Parameters
Type Name Description
EmptyKeys.UserInterface.Input.MouseStateBase state

The state.

System.Double timestamp

The time stamp.

RoutedEvent routedEvent

The routed event.

MouseEventArgs(MouseStateBase, Double, RoutedEvent, Object)

Initializes a new instance of the MouseEventArgs class.

Declaration
public MouseEventArgs(MouseStateBase state, double timestamp, RoutedEvent routedEvent, object source)
Parameters
Type Name Description
EmptyKeys.UserInterface.Input.MouseStateBase state

The state.

System.Double timestamp

The time stamp.

RoutedEvent routedEvent

The routed event.

System.Object source

The source.

Properties

MouseDevice

Gets the mouse device.

Declaration
public Mouse MouseDevice { get; }
Property Value
Type Description
Mouse

The mouse device.

State

Gets the state.

Declaration
public MouseStateBase State { get; }
Property Value
Type Description
EmptyKeys.UserInterface.Input.MouseStateBase

The state.

Methods

GetPosition()

Gets the position.

Declaration
public PointF GetPosition()
Returns
Type Description
EmptyKeys.UserInterface.PointF

mouse position (screen space)

GetPosition(UIElement)

Gets the position.

Declaration
public PointF GetPosition(UIElement element)
Parameters
Type Name Description
UIElement element

The element.

Returns
Type Description
EmptyKeys.UserInterface.PointF

InvokeEventHandler(Delegate, Object)

Invokes the event handler.

Declaration
protected override void InvokeEventHandler(Delegate handler, object target)
Parameters
Type Name Description
System.Delegate handler

The handler.

System.Object target

The target.

Overrides
InputEventArgs.InvokeEventHandler(Delegate, Object)
Back to top Generated by DocFX