【发布时间】:2014-12-05 22:42:26
【问题描述】:
我有一些 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 的内容,它只是从地球的边缘掉下来。如有必要,我如何使用 TextBlock 的 TextWrapping 和 MaxWidth 属性来包装它?还是必须将 TextBlock 与每个 RadioButton 配对,避开 RadioButton 的 Content/Text 属性?
【问题讨论】:
标签: xaml radio-button textblock word-wrap