Skip to content

Commit

Permalink
Merge pull request #3835 from MahApps/fix/GH-3821-RadioButton-Background
Browse files Browse the repository at this point in the history
(GH-3821) Fix Fill and Stroke brush for RadioButton's outer ellipse
  • Loading branch information
punker76 committed Jun 4, 2020
2 parents 2e39545 + db64cf8 commit bd88fa3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/MahApps.Metro/Styles/Controls.RadioButton.xaml
Expand Up @@ -34,19 +34,20 @@
<Grid x:Name="Radio"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<!-- Todo We need to use a different brush or an attached property to set the Fill and Stroke properties -->
<Ellipse x:Name="OuterEllipse"
Width="18"
Height="18"
Fill="{TemplateBinding Background}"
Stroke="{TemplateBinding BorderBrush}"
Fill="{DynamicResource MahApps.Brushes.ThemeBackground}"
Stroke="{DynamicResource MahApps.Brushes.CheckBox}"
StrokeThickness="{TemplateBinding Controls:RadioButtonHelper.RadioStrokeThickness}"
UseLayoutRounding="False" />
<Ellipse x:Name="CheckOuterEllipse"
Width="18"
Height="18"
Fill="{TemplateBinding Background}"
Fill="{DynamicResource MahApps.Brushes.ThemeBackground}"
Opacity="0"
Stroke="{TemplateBinding BorderBrush}"
Stroke="{DynamicResource MahApps.Brushes.CheckBox}"
StrokeThickness="{TemplateBinding Controls:RadioButtonHelper.RadioStrokeThickness}"
UseLayoutRounding="False" />
<Ellipse x:Name="CheckGlyph"
Expand Down

0 comments on commit bd88fa3

Please sign in to comment.