TextBox.SelectAll () does not justify the text on the left in silverlight

I gave a fixed width to the text box, and I also don't want to wrap the text. So the problem is that if I enter the text more than the width, and then into the GotFocus event of the text field, I will do the following:

txtperson.SelectAll();

But does this not justify the text on the left? Any help how can I achieve this?

Thanks.

+3
source share
1 answer

Well, what you can easily do is rewind the text box. when it focuses, you just change the background color of the text and it will do the trick.

0
source

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


All Articles