Replies: 4 comments
-
TextBox has an IsReadOnly property: https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.controls.textbox.isreadonly?view=winrt-19041 does that do what you need it to? |
Beta Was this translation helpful? Give feedback.
-
What @Mikozans want to say is how to manage to copy text and scroll in a disabled textbox, or how to get a disabled like style in a readonly textbox. The problem with the read-only style is that the user cannot distinguish which fields are editable and which are disabled. If you set "IsEnabled=false" the field can be clearly distinguised as disabled but then you cannot select text or scroll multiline text in the textbox. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment. |
Beta Was this translation helpful? Give feedback.
-
Yes, that's exactly what I tried to say before. |
Beta Was this translation helpful? Give feedback.
-
How can I manage to copy text and scroll it in a readonly textbox? What I want to achieve is just to have a disabled textbox and be able to copy and scroll it's content.
I tried in many different ways. The closest one was playing around with behaviors. Finally made it modifing the default textbox style but I don't like this approach as it's going to be a future issue if it is updated.
Is there an easiest way to accomplish it?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions