InputExtensions Class
Provides extension methods for input-related types.
public static class InputExtensions
- Inheritance:
- object object
Methods
IsPointerOver(PointerEventArgs, Visual)
Returns whether the pointer is over the specified target Avalonia.Visual.
public static bool IsPointerOver(this PointerEventArgs e, Visual targetVisual)
Parameter | Type | Description |
---|---|---|
e | PointerEventArgs | The Avalonia.Input.PointerEventArgs to examine. |
targetVisual | Visual | The target Avalonia.Visual. |
Returns
- bool:
true
if the pointer is over the target Avalonia.Visual; otherwise,false
.
ToPlatformString(KeyGesture)
Returns the Avalonia.Input.KeyGesture as a string using platform-specific formatting.
public static string ToPlatformString(this KeyGesture keyGesture)
Parameter | Type | Description |
---|---|---|
keyGesture | KeyGesture | The key gesture to format. |