Input​Pane​Visibility​Event​Args Input​Pane​Visibility​Event​Args Input​Pane​Visibility​Event​Args Class


Provides data for the input pane Hiding and Showing events.

public sealed class InputPaneVisibilityEventArgs : IInputPaneVisibilityEventArgspublic sealed class InputPaneVisibilityEventArgs : IInputPaneVisibilityEventArgsPublic NotInheritable Class InputPaneVisibilityEventArgs Implements IInputPaneVisibilityEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Your app receives this class in its Hiding and Showing event handlers.

In some cases, overlay UI such as an InputPane is not fully supported. This includes:


This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX).


EnsuredFocusedElementInView EnsuredFocusedElementInView EnsuredFocusedElementInView

Identifies whether the application has taken steps to ensure that the input pane doesn't cover the UI element that has focus.

public bool EnsuredFocusedElementInView { get; set; }public bool EnsuredFocusedElementInView { get; set; }Public ReadWrite Property EnsuredFocusedElementInView As bool
bool bool bool

True if the application has ensured that the input pane isn't covering the UI element that has focus; otherwise false.



If this property is false, Windows ensures that the input pane doesn't cover the focused element.

If you do the work to ensure that the focused element isn't covered, be sure to set this property to true to prevent Windows from trying to do the same work; otherwise, the results can be unpredictable.

See Also

OccludedRect OccludedRect OccludedRect

Gets the region of the application's window that the input pane is covering.

public Rect OccludedRect { get; }public Rect OccludedRect { get; }Public ReadOnly Property OccludedRect As Rect
Rect Rect Rect

The window region that the input pane is covering, in client coordinates specified in device independent pixels (DIPs).