Megosztás a következőn keresztül:


CoreInputView.TryHidePrimaryView Method

Definition

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

public:
 virtual bool TryHidePrimaryView() = TryHidePrimaryView;
bool TryHidePrimaryView();
public bool TryHidePrimaryView();
function tryHidePrimaryView()
Public Function TryHidePrimaryView () As Boolean

Returns

Boolean

bool

True, if the request to show 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.

Remarks

Primary view refers to either of the CoreInputViewKind.Keyboard or CoreInputViewKind.Handwriting views, while CoreInputView can be any of the values from CoreInputViewKind.

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