如何在复选框的文本中换行?我试过\n 但没用?
编辑:这是我的复选框
<CheckBox xml:space="preserve" Height="16" HorizontalAlignment="Left" Margin="360,46,0,0" Name="ShowOldRegistrations" VerticalAlignment="Top" Checked="ShowOldRegistrations_Checked" Unchecked="ShowOldRegistrations_UnChecked">
<StackPanel Height="42" Width="108">
<TextBlock>Line1</TextBlock>
<TextBlock>Line2</TextBlock>
</StackPanel>
</CheckBox>
最佳答案
<CheckBox Content="Stuff on line1
Stuff on line 2" />
关于c# - 使用 WPF 的 CheckBox 文本中的新行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6073531/