在XAML中是否只有在TextBox中有换行符?
我知道我可以在Code中设置myTextBox.Text ="something\r \n \nsomething2",但我不能这样做:
<TextBox x:Name="myTextBox">
<TextBox.Text>
Something
<Linebreak/>
Something2
</TextBox.Text>
</TextBox>
Run Code Online (Sandbox Code Playgroud)
或这个
<TextBox x:Name="myTextBox" Text="something\r\nsomething2" />
Run Code Online (Sandbox Code Playgroud)
Dil*_*e-O 24
试用...
<TextBox x:Name="myTextBox" Text="something1
something2" />
Run Code Online (Sandbox Code Playgroud)
在这里找到