47
47
<Style x : Key =" MaterialDesignCheckBox" TargetType =" {x:Type CheckBox}" >
48
48
<Setter Property =" FocusVisualStyle" Value =" {StaticResource FocusVisual}" />
49
49
<Setter Property =" BorderThickness" Value =" 1" />
50
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueMidBrush}" />
51
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueMidBrush}" />
50
52
<Setter Property =" Foreground" Value =" {Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" />
51
53
<Setter Property =" Template" >
52
54
<Setter .Value>
114
116
<Trigger Property =" IsPressed" Value =" true" />
115
117
<Trigger Property =" IsChecked" Value =" true" >
116
118
<Setter Property =" Data" TargetName =" Graphic" Value =" M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" />
117
- <Setter Property =" Fill" TargetName =" Graphic" Value =" {DynamicResource PrimaryHueMidBrush }" />
119
+ <Setter Property =" Fill" TargetName =" Graphic" Value =" {TemplateBinding Background }" />
118
120
</Trigger >
119
121
<Trigger Property =" IsChecked" Value =" {x:Null}" >
120
122
<Setter Property =" Data" TargetName =" Graphic" Value =" M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z" />
126
128
</Setter >
127
129
</Style >
128
130
131
+ <Style x : Key =" MaterialDesignLightCheckBox" TargetType =" {x:Type CheckBox}" BasedOn =" {StaticResource MaterialDesignCheckBox}" >
132
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueLightBrush}" />
133
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueLightBrush}" />
134
+ <Setter Property =" Foreground" Value =" {DynamicResource PrimaryHueLightForegroundBrush}" />
135
+ </Style >
136
+
137
+ <Style x : Key =" MaterialDesignDarkCheckBox" TargetType =" {x:Type CheckBox}" BasedOn =" {StaticResource MaterialDesignCheckBox}" >
138
+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueDarkBrush}" />
139
+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueDarkBrush}" />
140
+ <Setter Property =" Foreground" Value =" {DynamicResource PrimaryHueDarkForegroundBrush}" />
141
+ </Style >
142
+
143
+ <Style x : Key =" MaterialDesignAccentCheckBox" TargetType =" {x:Type CheckBox}" BasedOn =" {StaticResource MaterialDesignCheckBox}" >
144
+ <Setter Property =" Background" Value =" {DynamicResource SecondaryAccentBrush}" />
145
+ <Setter Property =" BorderBrush" Value =" {DynamicResource SecondaryAccentBrush}" />
146
+ <Setter Property =" Foreground" Value =" {DynamicResource SecondaryAccentForegroundBrush}" />
147
+ </Style >
148
+
129
149
<Style x : Key =" MaterialDesignUserForegroundCheckBox" TargetType =" {x:Type CheckBox}" >
130
150
<Setter Property =" FocusVisualStyle" Value =" {StaticResource FocusVisual}" />
131
151
<Setter Property =" BorderThickness" Value =" 1" />
206
226
</Setter >
207
227
</Style >
208
228
209
- </ResourceDictionary >
229
+ </ResourceDictionary >
0 commit comments