When we use a checkbox, the original style sometimes does not meet our needs, which is that we need to change its template, such as our common one, in the player "play", "pause" button, in fact, this is a checkbox, but we just modified its relevant template, Post the relevant code below:
<CheckBox.Style>
<style targettype= "{x:type CheckBox}" >
<setter property= "Focusable" value= "False"/>
<setter property= "Istabstop" value= "False"/>
<!--set Overridesdefaultstyle to True to indicate that the control does not use any of the properties of the current themes. -
<setter property= "Overridesdefaultstyle" value= "True"/>
<Style.Triggers>
<trigger property= "IsChecked" value= "True" >
<setter property= "Template" >
<Setter.Value>
<controltemplate targettype= "{x:type CheckBox}" >
<grid background= "Transparent" >
<image source= "/earthsimulation;component/images/button-play. png"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
<trigger property= "IsChecked" value= "False" >
<setter property= "Template" >
<Setter.Value>
<controltemplate targettype= "{x:type CheckBox}" >
<grid background= "Transparent" >
<image source= "/earthsimulation;component/images/button-pause. png"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</CheckBox.Style>
</CheckBox>
About a common checkbox style