Is there anyway in XAML only to have a linebreak in a TextBox?
I know I can set myTextBox.Text = "something\r\nsomething2" in Code, but I can't do this:
<TextBox x:Name="myTextBox">
<TextBox.Text>
Something
<Linebreak/>
Something2
</TextBox.Text>
</TextBox>
or this
<TextBox x:Name="myTextBox" Text="something\r\nsomething2" />
Try out...
<TextBox x:Name="myTextBox" Text="something1
something2" />
Found here
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