ICoreWindowKeyboardInput.IsKeyboardInputEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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:
-
- You use the default buffer. (For example, you do not provide your own KeyboardInputBuffer.)
-
- You programmatically open the touch keyboard by setting IsKeyboardInputEnabled to true.
-
- The user presses the back button, which closes the touch keyboard.
-
- 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.