Dela via


CoreInputView.TryHide Method

Definition

Attempts to hide (if visible) the input pane associated with the CoreInputView pane.

public:
 virtual bool TryHide() = TryHide;
bool TryHide();
public bool TryHide();
function tryHide()
Public Function TryHide () As Boolean

Returns

Boolean

bool

True, if the request to hide the input pane was accepted. Otherwise, false.

If this method is called from an app that is not in foreground, the request is rejected and false is returned.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

If you set CoreTextEditContext.InputPaneDisplayPolicy to Manual, use TryShow or TryShowPrimaryView to display the input pane, and TryHide or TryHidePrimaryView to hide the input pane.

Applies to

See also