我想换行显示在单选按钮中的文本。我尝试过这个(从here派生),但它不起作用:
<RadioButton x:Uid="SettingsAICChains" >
<RadioButton.Resources>
<Style TargetType="TextBlock">
<Setter Property="TextWrapping" Value="WrapWholeWords" />
</Style>
</RadioButton.Resources>
</RadioButton>正如here所解释的那样,我还尝试将此x:Uid放在单选按钮内的文本块中,但也不起作用。
出于本地化的原因,我需要通过x:Uid加载文本内容。
发布于 2016-03-10 14:46:03
签出TextTrimming property和MaxHeight属性。这些会有帮助的。
https://stackoverflow.com/questions/35896315
复制相似问题