Skip to content

Commit 7c7020d

Browse files
author
bebenins
committed
MaterialDesignCheckBox default VerticalContentAlignment
Set default VerticalContentAlignment="Center" to MaterialDesignCheckBox so that it's aligned with any size font
1 parent 1af11d0 commit 7c7020d

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)