How to set TextBox
cursor on the right corner of the TextBox
.
While there's a Text
inside the TextBox
How to set TextBox
cursor on the right corner of the TextBox
.
While there's a Text
inside the TextBox
You can use HorizontalContentAlignment
property:
<TextBox HorizontalContentAlignment="Right" VerticalAlignment="Top"/>
The result:
If you want to set the Caret position, you have to play with CaretIndex
property,for example:
<TextBox Text="Username" CaretIndex="0"/>;
But as @NicoRiff says in a comment, what you probably want is a PlaceHolder. If that's the case, see this question