Udostępnij za pośrednictwem


InputPane.TryShow Method

Definition

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.

public:
 virtual bool TryShow() = TryShow;
bool TryShow();
public bool TryShow();
function tryShow()
Public Function TryShow () As Boolean

Returns

Boolean

bool

true if the request to show the InputPane 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

If you set CoreTextEditContext.InputPaneDisplayPolicy to Manual in your app, you are responsible for showing and hiding the input pane using TryShow and TryHide.

Applies to

See also