WPF: TextTrimming in CheckBox with no fixed width
问题 I have a checkbox located in a grid with a column span of 3, where 2 of the columns are resizable, and can be resized during runtime. I want the checkbox to show ellipsis when its text doesn't fit, but can't get this to work. Here is my XAML code. <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="Auto" /> </Grid.ColumnDefinitions> ... <CheckBox IsEnabled="False" Grid.Row="2" Padding="5"