Enables an app to receive notifications when the docked touch keyboard, or Soft Input Panel (SIP), is about to be displayed or hidden, and to determine which portion of the application's window is obscured by the input pane.
The InputPane APIs provide accurate occlusion information for a docked panel only. For Windows 10 Creators Fall Update and newer, we reccomend using the following APIs to handle occlusion by docked, undocked, moveable, and transitory input panes such as Soft Input Panels (SIP), Input Method Editor (IME) candidate windows, floating toolbars, and so on.
public : sealed class InputPane : IInputPane, IInputPane2, IInputPaneControl
struct winrt::Windows::UI::ViewManagement::InputPane : IInputPane, IInputPane2, IInputPaneControl
public sealed class InputPane : IInputPane, IInputPane2, IInputPaneControl
Public NotInheritable Class InputPane Implements IInputPane, IInputPane2, IInputPaneControl
// This class does not provide a public constructor.
Windows 10 (introduced v10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced v1)
The input pane appears when the user performs an action that requires them to enter information, such as selecting a text entry field. By default, Windows handles the input pane events and repositions content so that users can see where they are typing. If you set CoreTextEditContext.InputPaneDisplayPolicy to Manual in your app, you are responsible for showing and hiding the input pane using TryShow and TryHide. Use this class to override the default behavior and customize the input pane.
In some cases, overlay UI such as an InputPane is not fully supported. This includes:
After you register to receive input pane notifications, the system calls your event delegate whenever the input pane is shown or hidden for the window that was visible when you called the GetForCurrentView method.
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).
|OccludedRect OccludedRect OccludedRect OccludedRect OccludedRect||
Gets the region of the app window obscured by the input pane.
|Visible Visible Visible Visible Visible||
Gets or sets a value that indicates whether the input pane is shown.
Valid for Xbox device family only.
For universal apps, the OccludedRect property indicates the region of the app window obstructed by the input pane.
|GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()||
Gets the InputPane object associated with the application window that is currently visible.
|TryHide() TryHide() TryHide() TryHide() TryHide()||
Tries to hide the InputPane, if it is visible.
|TryShow() TryShow() TryShow() TryShow() TryShow()||
Tries to show the InputPane, if it is hidden.
This method is a "best effort" and guarantees only that the user has a way to enter text in the focused control. The touch keyboard, or Soft Input Panel (SIP), is shown only if a hardware keyboard is not available.
|Hiding Hiding Hiding Hiding Hiding||
Occurs when the input pane starts sliding out of view.
|Showing Showing Showing Showing Showing||
Occurs when the input pane starts sliding into view.