Skip to content

Commit

Permalink
(GH-3582) Use attached property CornerRadius for CheckBox
Browse files Browse the repository at this point in the history
  • Loading branch information
punker76 committed Oct 4, 2019
1 parent 6a16e56 commit c0d4ad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MahApps.Metro/Styles/Controls.CheckBox.xaml
Expand Up @@ -32,6 +32,7 @@
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
<Path x:Name="checkBox"
Width="12"
Expand All @@ -51,6 +52,7 @@
Height="18"
Background="{DynamicResource MahApps.Brushes.SemiTransparentWhite}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding Controls:ControlsHelper.CornerRadius}"
Opacity="0"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
</Grid>
Expand Down

0 comments on commit c0d4ad0

Please sign in to comment.