When i use multiline text box the text/content of text box should align to top, and if it is a single line text box then it text alignment should be default one(Center), i need to set this in text box style, so when ever there is a multiline text box my style will automatically adjust the content accordingly.
you only need to set VerticalContentAlignment="Top"
in your textbox like:
<TextBox
TextWrapping="Wrap"
AcceptsReturn="True"
Text="sample ... "
VerticalContentAlignment="Top"
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With