InputPaneVisibilityEventArgs InputPaneVisibilityEventArgs InputPaneVisibilityEventArgs InputPaneVisibilityEventArgs InputPaneVisibilityEventArgs Class


Provides data for the input pane Hiding and Showing events.

public : sealed class InputPaneVisibilityEventArgs : IInputPaneVisibilityEventArgs
struct winrt::Windows::UI::ViewManagement::InputPaneVisibilityEventArgs : IInputPaneVisibilityEventArgs
public sealed class InputPaneVisibilityEventArgs : IInputPaneVisibilityEventArgs
Public NotInheritable Class InputPaneVisibilityEventArgs Implements IInputPaneVisibilityEventArgs
// This class does not provide a public constructor.
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 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 : Platform::Boolean EnsuredFocusedElementInView { get; set; }
bool EnsuredFocusedElementInView(); void EnsuredFocusedElementInView(bool ensuredfocusedelementinview);
public bool EnsuredFocusedElementInView { get; set; }
Public ReadWrite Property EnsuredFocusedElementInView As bool
var bool = inputPaneVisibilityEventArgs.ensuredFocusedElementInView;
inputPaneVisibilityEventArgs.ensuredFocusedElementInView = 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 OccludedRect OccludedRect

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

public : Rect OccludedRect { get; }
Rect OccludedRect();
public Rect OccludedRect { get; }
Public ReadOnly Property OccludedRect As Rect
var rect = inputPaneVisibilityEventArgs.occludedRect;
Rect Rect Rect

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