IInputElement Interface
Not client implementable.
Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.
Defines input-related functionality for a control.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
[NotClientImplementableAttribute]
public interface IInputElement
<NotClientImplementableAttribute>
Public Interface IInputElement
[<NotClientImplementableAttribute>]
type IInputElement = interface end
Properties
| Cursor | Gets or sets the associated mouse cursor. |
| Focusable | Gets or sets a value indicating whether the control can receive keyboard focus. |
| IsEffectivelyEnabled | Gets a value indicating whether this control and all its parents are enabled. |
| IsEffectivelyVisible | Gets a value indicating whether this control and all its parents are visible. |
| IsEnabled | Gets or sets a value indicating whether the control is enabled for user interaction. |
| IsFocused | Gets a value indicating whether the control is focused. |
| IsHitTestVisible | Gets a value indicating whether the control is considered for hit testing. |
| IsKeyboardFocusWithin | Gets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements. |
| IsPointerOver | Gets a value indicating whether the pointer is currently over the control. |
| KeyBindings | Gets the key bindings for the element. |
Methods
| AddHandler(RoutedEvent, Delegate, RoutingStrategies, Boolean) | Adds a handler for the specified routed event. |
| Focus(NavigationMethod, KeyModifiers) | Focuses the control. |
| RaiseEvent(RoutedEventArgs) | Raises a routed event. |
| RemoveHandler(RoutedEvent, Delegate) | Removes a handler for the specified routed event. |
Events
| GotFocus | Occurs when the control receives focus. |
| KeyDown | Occurs when a key is pressed while the control has focus. |
| KeyUp | Occurs when a key is released while the control has focus. |
| LostFocus | Occurs when the control loses focus. |
| PointerEntered | Occurs when the pointer enters the control. |
| PointerExited | Occurs when the pointer leaves the control. |
| PointerMoved | Occurs when the pointer moves over the control. |
| PointerPressed | Occurs when the pointer is pressed over the control. |
| PointerReleased | Occurs when the pointer is released over the control. |
| PointerWheelChanged | Occurs when the mouse wheel is scrolled over the control. |
| TextInput | Occurs when a user typed some text while the control has focus. |
Extension Methods
| GetInputElementsAt(Point) | Returns the active input elements at a point on an IInputElement. (Defined by InputExtensions) |
| GetInputElementsAt(Point, Boolean) | Returns the active input elements at a point on an IInputElement. (Defined by InputExtensions) |
| InputHitTest(Point) | Returns the topmost active input element at a point on an IInputElement. (Defined by InputExtensions) |
| InputHitTest(Point, Boolean) | Returns the topmost active input element at a point on an IInputElement. (Defined by InputExtensions) |
| InputHitTest(Point, Func(Visual, Boolean)) | Returns the topmost active input element at a point on an IInputElement. (Defined by InputExtensions) |
| InputHitTest(Point, Func(Visual, Boolean), Boolean) | Returns the topmost active input element at a point on an IInputElement. (Defined by InputExtensions) |