Xaml 我可以在WPF中包装RadioButton的内容/文本值吗?

Xaml 我可以在WPF中包装RadioButton的内容/文本值吗?,xaml,radio-button,textblock,word-wrap,Xaml,Radio Button,Textblock,Word Wrap,我有一些XAML: <StackPanel Orientation="Horizontal"> <TextBlock x:Name="KeyLWP" TextWrapping="Wrap" MaxWidth="120">A Letter or Word or Phrase </TextBlock> <StackPanel> <RadioButton x:Name="rdbtnCandidateVal1"

我有一些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>

字母、单词或短语

…当一个长字符串被分配给一个单选按钮的内容时,它就会从地球的边缘掉下来。如有必要,如何让它像使用TextBlock的TextWrapping和MaxWidth属性一样进行包装?或者我必须将文本块与每个RadioButton配对,避免RadioButton的内容/文本属性?

如果您有一些选项,可以在RadioButton样式模板中进行设置,以便将其应用于所有RadioButton,或者在实例级别进行快速设置

<RadioButton>
   <RadioButton.Content>
      <TextBlock Text="Wrap My Content Pretty Pretty Please" TextWrapping="Wrap"/>
   </RadioButton.Content>
</RadioButton>


或者还有其他选择,如果有具体情况,请告诉我,我们会帮您解决。

谢谢,克里斯;我还必须添加一个MaxWidth val,但这很容易。