Class MouseEventArgsExtensions
Contains extension methods for the MouseEventArgs class.
Inheritance
System.Object
MouseEventArgsExtensions
Inherited Members
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: System.Windows.Input
Assembly: OpenSilver.Controls.Toolkit.dll
Syntax
public static class MouseEventArgsExtensions
Methods
| Improve this Doc View SourceGetSafePosition(MouseEventArgs, UIElement)
Returns the position of mouse relative to an object.
Declaration
public static Point GetSafePosition(this MouseEventArgs mouseEventArgs, UIElement relativeTo)
Parameters
Type | Name | Description |
---|---|---|
MouseEventArgs | mouseEventArgs | Information about a mouse event. |
UIElement | relativeTo | The element relative to which the position is returned. |
Returns
Type | Description |
---|---|
Point | The position of the mouse relative to the object. |