Skip to main content

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)

[NotClientImplementableAttribute]
public interface IInputElement
View Source

Properties

CursorGets or sets the associated mouse cursor.
FocusableGets or sets a value indicating whether the control can receive keyboard focus.
IsEffectivelyEnabledGets a value indicating whether this control and all its parents are enabled.
IsEffectivelyVisibleGets a value indicating whether this control and all its parents are visible.
IsEnabledGets or sets a value indicating whether the control is enabled for user interaction.
IsFocusedGets a value indicating whether the control is focused.
IsHitTestVisibleGets a value indicating whether the control is considered for hit testing.
IsKeyboardFocusWithinGets a value indicating whether keyboard focus is anywhere within the element or its visual tree child elements.
IsPointerOverGets a value indicating whether the pointer is currently over the control.
KeyBindingsGets 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

GotFocusOccurs when the control receives focus.
KeyDownOccurs when a key is pressed while the control has focus.
KeyUpOccurs when a key is released while the control has focus.
LostFocusOccurs when the control loses focus.
PointerEnteredOccurs when the pointer enters the control.
PointerExitedOccurs when the pointer leaves the control.
PointerMovedOccurs when the pointer moves over the control.
PointerPressedOccurs when the pointer is pressed over the control.
PointerReleasedOccurs when the pointer is released over the control.
PointerWheelChangedOccurs when the mouse wheel is scrolled over the control.
TextInputOccurs 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)

See Also

Reference

Avalonia.Input Namespace