Answered by:
[UWP]TextBox.IsReadOnly = true - crash app

Question
-
Hi All,
If set TextBlock.IsReadOnly to true - I'll get app crash.
Windows 10 Version 1511 (OS Build 14316.1000)
No problem on Windows 10 Mobile 10586 build
- Edited by Alexey.U Friday, April 8, 2016 10:59 AM
- Edited by Barry Wang Monday, April 11, 2016 12:51 AM title tag
- Edited by Franklin ChenMicrosoft employee Tuesday, April 26, 2016 2:33 AM TextBlock->TextBox
Friday, April 8, 2016 10:59 AM
Answers
-
Hi Alexey,
This is a known bug with the OS (not with VS or the SDK), but I would encourage you to test with the 14332 Insider Fast version of the OS which was just announced today. The new OS should have the fix in it. Please let me know how it goes.
Thanks,
Prashant
- Proposed as answer by Barry Wang Wednesday, May 4, 2016 5:16 AM
- Marked as answer by Franklin ChenMicrosoft employee Thursday, May 5, 2016 12:15 PM
Wednesday, April 27, 2016 8:44 PM
All replies
-
TextBlock is for displaying text. You cannot edit text in a textblock. Why do you need to set the property?
Saturday, April 9, 2016 2:10 PM -
A UWP TextBlock doesn't have any IsReadOnly property: https://msdn.microsoft.com/sv-se/library/windows/apps/br209652
The TextBox class has but setting this shouldn't crash the app: https://msdn.microsoft.com/sv-se/library/windows/apps/xaml/windows.ui.xaml.controls.textbox.isreadonly.aspx
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.
- Proposed as answer by Barry Wang Wednesday, April 20, 2016 9:31 AM
- Marked as answer by Barry Wang Thursday, April 21, 2016 9:19 AM
- Unmarked as answer by Franklin ChenMicrosoft employee Friday, April 22, 2016 1:49 AM
- Unproposed as answer by Barry Wang Thursday, April 28, 2016 1:14 AM
Sunday, April 10, 2016 5:47 PM -
My wrong.... of cource is TextBox :D
Monday, April 11, 2016 12:49 PM -
@Alexey.U,
I think that textbox should not cause this issue. Is it a new simple project?
Please test this, if it is a new simple project which can reproduce this issue. Please repair your Visual Studio and Windows SDK.
If only your old project can reproduce this issue, I think you need to clean and rebuild your project.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, April 12, 2016 8:45 AM -
Hi Alexey,
Thank you for your reporting, we can reproduce this issue, our experts are investigating it and will come back if have any updates.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.Tuesday, April 26, 2016 2:32 AM -
Hi Alexey,
This is a known bug with the OS (not with VS or the SDK), but I would encourage you to test with the 14332 Insider Fast version of the OS which was just announced today. The new OS should have the fix in it. Please let me know how it goes.
Thanks,
Prashant
- Proposed as answer by Barry Wang Wednesday, May 4, 2016 5:16 AM
- Marked as answer by Franklin ChenMicrosoft employee Thursday, May 5, 2016 12:15 PM
Wednesday, April 27, 2016 8:44 PM