Summary
Defines the interface for top-level input elements.
- Namespace
- Avalonia
.Input - Interfaces
- Implementing Types
graph BT
Type-.->Interface0["IInputElement"]
click Interface0 "/api/Avalonia.Input/IInputElement"
Type-.->Interface1["IInteractive"]
click Interface1 "/api/Avalonia.Interactivity/IInteractive"
Type-.->Interface2["IVisual"]
click Interface2 "/api/Avalonia.VisualTree/IVisual"
Type["IInputRoot"]
class Type type-node
Implementing0["AboutAvaloniaDialog"]-.->Type
click Implementing0 "/api/Avalonia.Dialogs/AboutAvaloniaDialog"
Implementing1["TopLevel"]-.->Type
click Implementing1 "/api/Avalonia.Controls/TopLevel"
Implementing2["ReactiveWindow<TViewModel>"]-.->Type
click Implementing2 "/api/Avalonia.ReactiveUI/ReactiveWindow_1"
Implementing3["EmbeddableControlRoot"]-.->Type
click Implementing3 "/api/Avalonia.Controls.Embedding/EmbeddableControlRoot"
Implementing4["PopupRoot"]-.->Type
click Implementing4 "/api/Avalonia.Controls.Primitives/PopupRoot"
Implementing5["ITextInputMethodRoot"]-.->Type
click Implementing5 "/api/Avalonia.Input.TextInput/ITextInputMethodRoot"
Implementing6["Window"]-.->Type
click Implementing6 "/api/Avalonia.Controls/Window"
Implementing7["WindowBase"]-.->Type
click Implementing7 "/api/Avalonia.Controls/WindowBase"
Syntax
public interface IInputRoot : IInputElement, IInteractive, IVisual
Properties
Name | Value | Summary |
---|---|---|
AccessKeyHandler | IAccessKeyHandler |
Gets or sets the access key handler.
|
Keyboard |
I |
Gets or sets the keyboard navigation handler.
|
MouseDevice | IMouseDevice? |
Gets associated mouse device
|
PointerOverElement | IInputElement? |
Gets or sets the input element that the pointer is currently over.
|
ShowAccessKeys | bool |
Gets or sets a value indicating whether access keys are shown in the window.
|
Extension Methods
Name | Value | Summary |
---|---|---|
AddDisposableHandler |
IDisposable |
Adds a handler for the specified routed event and returns a disposable that can terminate the event subscription.
|
Calculate |
int |
Calculates the distance from a visual's ancestor.
From VisualExtensions
|
FindAncestorOfType |
T |
Finds first ancestor of given type.
From VisualExtensions
|
Find |
IVisual |
Tries to get the first common ancestor of two visuals.
From VisualExtensions
|
FindDescendantOfType |
T |
Finds first descendant of given type.
From VisualExtensions
|
GetInputElementsAt |
IEnumerable |
Returns the active input elements at a point on an
IInputElement .
From InputExtensions
|
GetObservable |
IObservable |
Gets an observable for a
RoutedEvent<TEventArgs> .
|
Get |
IEnumerable |
Enumerates an
IVisual and its ancestors in the visual tree.
From VisualExtensions
|
Get |
IEnumerable |
Enumerates an
IVisual and its descendants in the visual tree.
From VisualExtensions
|
GetVisualAncestors |
IEnumerable |
Enumerates the ancestors of an
IVisual in the visual tree.
From VisualExtensions
|
GetVisualAt |
IVisual |
Gets the first visual in the visual tree whose bounds contain a point.
From VisualExtensions
|
GetVisualAt |
IVisual |
Gets the first visual in the visual tree whose bounds contain a point.
From VisualExtensions
|
GetVisualChildren |
IEnumerable |
Enumerates the children of an
IVisual in the visual tree.
From VisualExtensions
|
GetVisualDescendants |
IEnumerable |
Enumerates the descendants of an
IVisual in the visual tree.
From VisualExtensions
|
GetVisualParent |
IVisual |
Gets the visual parent of an
IVisual .
From VisualExtensions
|
GetVisualParent |
T |
Gets the visual parent of an
IVisual .
From VisualExtensions
|
GetVisualRoot |
IRenderRoot |
Gets the root visual for an
IVisual .
From VisualExtensions
|
GetVisualsAt |
IEnumerable |
Enumerates the visible visuals in the visual tree whose bounds contain a point.
From VisualExtensions
|
GetVisualsAt |
IEnumerable |
Enumerates the visuals in the visual tree whose bounds contain a point.
From VisualExtensions
|
HitTestCustom |
bool | |
InputHitTest |
IInputElement? |
Returns the topmost active input element at a point on an
IInputElement .
From InputExtensions
|
InputHitTest |
IInputElement? |
Returns the topmost active input element at a point on an
IInputElement .
From InputExtensions
|
IsVisualAncestorOf |
bool |
Tests whether an
IVisual is an ancestor of another visual.
From VisualExtensions
|
PointToClient |
Point |
Converts a point from screen to client coordinates.
From VisualExtensions
|
PointToScreen |
PixelPoint |
Converts a point from client to screen coordinates.
From VisualExtensions
|
TransformToVisual |
Matrix? |
Returns a transform that transforms the visual's coordinates into the coordinates
of the specified to.
From VisualExtensions
|
TranslatePoint |
Point? |
Translates a point relative to this visual to coordinates that are relative to the specified visual.
From VisualExtensions
|