我有一些XAML代码:
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="KeyLWP" TextWrapping="Wrap" MaxWidth="120">A Letter or Word or Phrase
</TextBlock>
<StackPanel>
<RadioButton x:Name="rdbtnCandidateVal1" Content="Two wrongs don't make a Wright Brothers Grimm was the Thingamabob Dylan Thomas Jefferson Airplane">
</RadioButton>
...在 RadioButton 的 Content 中分配了一个很长的字符串时,它会简单地从边缘掉落。我如何使其自动换行(必要时),就像 TextBlock 的 TextWrapping 和 MaxWidth 属性一样?还是必须将每个 RadioButton 与 TextBlock 配对,避免使用 RadioButton 的 Content/Text 属性?