0
votes

I have a very simple scenario where I can focus an editable text box, the cursor appears inside the field, bt the keyboard will not show.

I have replicated this in a small sample app (Windows Phone 8.1 - Universal App). Very easy to recreate.

Create an 8.1 universal app. In the MainPage for phone add a text box and a button. The code for the button just sets the textbox to NOT read only. The default state of the textbox is ReadOnly.

Run app, select edit and then select the field. Cursor is present and keyboard opens. Close app.

Failure scenario:

  1. Open app, touch read only text field. Note: No cursor is in box as it is read only.

  2. Select Edit button. Tap the text field. Cursor is focused into field, but keyboard does not appear. I have a sample app with this behavior.

Any Resolutions?

1

1 Answers

2
votes

This is a known issue in Windows Phone 8.1 which is fixed in current builds of Windows 10 Mobile.

Unfortunately I don't see any good workarounds for this on Windows Phone 8.1 other than "don't do that". Instead of switching a TextBox into and out of IsReadOnly mode try swapping between two TextBoxes (or a TextBox and a TextBlock).