Share via


CoreInputView.TryShowPrimaryView Method

Definition

Attempts to show (if hidden) the CoreInputView pane.

This method is a "best effort" and guarantees only that the user has a way to interact with the focused control. For a docked a Soft Input Panel (SIP) like the Touch keyboard and handwriting panel, the pane is shown only if a hardware keyboard is not available.

public:
 virtual bool TryShowPrimaryView() = TryShowPrimaryView;
bool TryShowPrimaryView();
public bool TryShowPrimaryView();
function tryShowPrimaryView()
Public Function TryShowPrimaryView () 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 in your app, you are responsible for showing and hiding the input pane using TryShowPrimaryView and TryHidePrimaryView.

Applies to

See also