Skip to content

Commit 5f21902

Browse files
committed
Update Styles.RadioButton.xaml
1 parent 37da2a2 commit 5f21902

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

src/WPFDevelopers.Shared/Styles/Styles.RadioButton.xaml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,31 @@
1313
<Setter Property="Background" Value="{DynamicResource WindowForegroundColorBrush}"/>
1414
<Setter Property="BorderThickness" Value="1"/>
1515
<Setter Property="Padding" Value="4,0"/>
16-
16+
<Setter Property="VerticalAlignment" Value="Center"/>
17+
<Setter Property="HorizontalAlignment" Value="Left"/>
1718
<Setter Property="Template">
1819
<Setter.Value>
1920
<ControlTemplate TargetType="{x:Type RadioButton}">
20-
<BulletDecorator Background="Transparent">
21+
<BulletDecorator Background="Transparent"
22+
Margin="{TemplateBinding Margin}">
2123
<BulletDecorator.Bullet>
22-
<controls:SmallPanel MinWidth="16" MinHeight="16" >
23-
<Ellipse x:Name="PART_Border"
24+
<Border VerticalAlignment="{TemplateBinding VerticalAlignment}"
25+
HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
26+
<controls:SmallPanel MinWidth="16" MinHeight="16" >
27+
<Ellipse x:Name="PART_Border"
2428
StrokeThickness="{TemplateBinding BorderThickness}"
2529
Fill="{TemplateBinding Background}"
2630
Stroke="{DynamicResource BaseSolidColorBrush}">
27-
</Ellipse>
28-
<Ellipse x:Name="PART_Ellipse" Fill="{DynamicResource WindowForegroundColorBrush}"
31+
</Ellipse>
32+
<Ellipse x:Name="PART_Ellipse" Fill="{DynamicResource WindowForegroundColorBrush}"
2933
MinWidth="6" MinHeight="6"
3034
RenderTransformOrigin=".5,.5">
31-
<Ellipse.RenderTransform>
32-
<ScaleTransform ScaleX="0" ScaleY="0"/>
33-
</Ellipse.RenderTransform>
34-
</Ellipse>
35-
</controls:SmallPanel>
35+
<Ellipse.RenderTransform>
36+
<ScaleTransform ScaleX="0" ScaleY="0"/>
37+
</Ellipse.RenderTransform>
38+
</Ellipse>
39+
</controls:SmallPanel>
40+
</Border>
3641
</BulletDecorator.Bullet>
3742
<ContentPresenter x:Name="PART_ContentPresenter"
3843
ContentTemplate="{TemplateBinding ContentTemplate}"

0 commit comments

Comments
 (0)