22
22
<Setter Property =" FocusVisualStyle" Value =" {StaticResource FocusVisual}" />
23
23
<Setter Property =" BorderThickness" Value =" 1" />
24
24
<Setter Property =" Foreground" Value =" {Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" />
25
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueMidBrush}" />
26
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueMidBrush}" />
25
27
<Setter Property =" Template" >
26
28
<Setter .Value>
27
29
<ControlTemplate TargetType =" {x:Type RadioButton}" >
87
89
<Trigger Property =" IsPressed" Value =" true" />
88
90
<Trigger Property =" IsChecked" Value =" true" >
89
91
<Setter Property =" Data" TargetName =" Graphic" Value =" M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z" />
90
- <Setter Property =" Fill" TargetName =" Graphic" Value =" {DynamicResource PrimaryHueMidBrush }" />
92
+ <Setter Property =" Fill" TargetName =" Graphic" Value =" {Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background }" />
91
93
</Trigger >
92
94
<Trigger Property =" IsChecked" Value =" {x:Null}" >
93
95
<Setter Property =" Data" TargetName =" Graphic" Value =" M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z" />
98
100
</Setter .Value>
99
101
</Setter >
100
102
</Style >
101
- </ResourceDictionary >
103
+
104
+ <Style x : Key =" MaterialDesignLightRadioButton" TargetType =" {x:Type RadioButton}" BasedOn =" {StaticResource MaterialDesignRadioButton}" >
105
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueLightBrush}" />
106
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueLightBrush}" />
107
+ <Setter Property =" Foreground" Value =" {DynamicResource PrimaryHueLightForegroundBrush}" />
108
+ </Style >
109
+
110
+ <Style x : Key =" MaterialDesignDarkRadioButton" TargetType =" {x:Type RadioButton}" BasedOn =" {StaticResource MaterialDesignRadioButton}" >
111
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueDarkBrush}" />
112
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueDarkBrush}" />
113
+ <Setter Property =" Foreground" Value =" {DynamicResource PrimaryHueDarkForegroundBrush}" />
114
+ </Style >
115
+
116
+ <Style x : Key =" MaterialDesignAccentRadioButton" TargetType =" {x:Type RadioButton}" BasedOn =" {StaticResource MaterialDesignRadioButton}" >
117
+ <Setter Property =" Background" Value =" {DynamicResource SecondaryAccentBrush}" />
118
+ <Setter Property =" BorderBrush" Value =" {DynamicResource SecondaryAccentBrush}" />
119
+ <Setter Property =" Foreground" Value =" {DynamicResource SecondaryAccentForegroundBrush}" />
120
+ </Style >
121
+
122
+ </ResourceDictionary >
0 commit comments