4747 <Style x : Key =" MaterialDesignCheckBox" TargetType =" {x:Type CheckBox}" >
4848 <Setter Property =" FocusVisualStyle" Value =" {StaticResource FocusVisual}" />
4949 <Setter Property =" BorderThickness" Value =" 1" />
50+ <Setter Property =" Background" Value =" {DynamicResource PrimaryHueMidBrush}" />
51+ <Setter Property =" BorderBrush" Value =" {DynamicResource PrimaryHueMidBrush}" />
5052 <Setter Property =" Foreground" Value =" {Binding RelativeSource={RelativeSource AncestorType={x:Type FrameworkElement}}, Path=(TextElement.Foreground)}" />
5153 <Setter Property =" Template" >
5254 <Setter .Value>
114116 <Trigger Property =" IsPressed" Value =" true" />
115117 <Trigger Property =" IsChecked" Value =" true" >
116118 <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 =" {Binding RelativeSource={RelativeSource TemplatedParent}, Path=Background }" />
118120 </Trigger >
119121 <Trigger Property =" IsChecked" Value =" {x:Null}" >
120122 <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" />
126128 </Setter >
127129 </Style >
128130
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+
129149 <Style x : Key =" MaterialDesignUserForegroundCheckBox" TargetType =" {x:Type CheckBox}" >
130150 <Setter Property =" FocusVisualStyle" Value =" {StaticResource FocusVisual}" />
131151 <Setter Property =" BorderThickness" Value =" 1" />
206226 </Setter >
207227 </Style >
208228
209- </ResourceDictionary >
229+ </ResourceDictionary >
0 commit comments