ICoreWindowKeyboardInput.IsKeyboardInputEnabled Property

Definition

Note

IsKeyboardInputEnabled may be altered or unavailable for releases after Windows Phone 8.1 GDR2.

Gets or sets whether the touch keyboard is displayed to the user for text input.

public:
 property bool IsKeyboardInputEnabled { bool get(); void set(bool value); };
bool IsKeyboardInputEnabled();

void IsKeyboardInputEnabled(bool value);
public bool IsKeyboardInputEnabled { get; set; }
var boolean = iCoreWindowKeyboardInput.isKeyboardInputEnabled;
iCoreWindowKeyboardInput.isKeyboardInputEnabled = boolean;
Public Property IsKeyboardInputEnabled As Boolean

Property Value

Boolean

bool

True if touch keyboard is enabled. Otherwise, false.

Remarks

If all of the following conditions occur, the value of the IsKeyboardInputEnabled property might not be accurate:

    1. You use the default buffer. (For example, you do not provide your own KeyboardInputBuffer.)
    1. You programmatically open the touch keyboard by setting IsKeyboardInputEnabled to true.
    1. The user presses the back button, which closes the touch keyboard.
    1. You read IsKeyboardInputEnabled and expect the value to be false (since the touch keyboard was closed), but the value is true. There are multiple workarounds for this scenario:
  • Do not use the default buffer.

  • Do not use IsKeyboardInputEnabled.

  • Listen to the Hiding event and set IsKeyboardInputEnabled to false.

  • Use the OccludedRect property to see if the touch keyboard is open.

Applies to