我需要为TextBox设置CheckBox的TextWrapping,但CheckBox没有TextWrapping属性。如何为CheckBox配置TextWrapping?如何为CheckBox控件配置TextWrapping?
<Grid>
<ListBox>
<TextBlock Text="{Binding LocalizedResources.CleanCity, Source={StaticResource LocalizedStrings}}" Foreground="Black" FontSize="32" FontWeight="Bold"/>
<CheckBox x:Name="c1" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c2" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c3" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c4" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c5" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<TextBlock Text="{Binding LocalizedResources.SafeCity, Source={StaticResource LocalizedStrings}}" Foreground="Black" FontSize="32" FontWeight="Bold"/>
<CheckBox x:Name="c6" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<TextBlock Text="{Binding LocalizedResources.ComfortableCity, Source={StaticResource LocalizedStrings}}" Foreground="Black" FontSize="32" FontWeight="Bold"/>
<CheckBox x:Name="c7" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c8" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
<CheckBox x:Name="c9" Foreground="{StaticResource CustomApplicationTextBrush}" Background="#BFC2E2FD"/>
</ListBox>
</Grid>
谢谢!
你能分享你的代码,以便我们可以帮助你..! – Jegadeesh