Input Pane v11.1
The InputPane
allows developers to listen for the platform's input pane (e.g., software keyboard or on-screen keyboard) current state and boundaries.
The InputPane
can be access through an instance of TopLevel
or Window
, for more details on accessing TopLevel
please visit TopLevel page:
var inputPane = TopLevel.GetTopLevel(control).InputPane;
Currently, Avalonia does not automatically adjust root view and scrolling position depending on state of the input pane. Instead, it is recommended for developers to use IInputPane API and adjust their apps accordingly.
Automatic adjustment is planned for future 11.* releases.
Properties
State
The current input pane state. Possible values:
InputPaneState.Closed
InputPaneState.Opened
InputPaneState State { get; }
OccludedRect
The current input pane bounds.
Rect OccludedRect { get; }
Return value is in client coordinates relative to the current top level. Empty rectangle will be returned in case of floating/detached input pane, that is positioned on top of the view.