Skip to content

Commit 0cc754d

Browse files
author
bebenins
committed
MaterialDesignCheckBox VerticalContentAlignment
Set MaterialDesignCheckBox VerticalContentAlignment to "Center" so that everything is aligned for all font sizes
1 parent 7710979 commit 0cc754d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.CheckBox.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<Style x:Key="MaterialDesignCheckBox" TargetType="{x:Type CheckBox}">
4848
<Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
4949
<Setter Property="BorderThickness" Value="1"/>
50+
<Setter Property="VerticalContentAlignment" Value="Center"/>
5051
<Setter Property="Background" Value="{DynamicResource PrimaryHueMidBrush}"/>
5152
<Setter Property="BorderBrush" Value="{DynamicResource PrimaryHueMidBrush}"/>
5253
<Setter Property="Foreground" Value="{Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}"/>

0 commit comments

Comments
 (0)