How to highlight text in focus in Windows Phone 7?

How do you select text in a TextBox control in Windows Phone 7? I can not find the property parameter on the control.

Does the OnFocus event in code work for the only option?

+3
source share
2 answers

You can select text using TextBox.Select (int start, int length).

+2
source

Actually there is a pretty big attached property that you can use for this. You can see the initial description of the decision to automatically select text in the text field , as well as see the project in which I made it .

+1
source

Source: https://habr.com/ru/post/1777826/


All Articles