title: WPF: Checkbox Check all other checkboxes and uncheck, visual difference
body: <p>I have got some custom checkbox designs for my application, below is an image of them. It should be clear, but the top first on has style1 (all are checked). </p>
  
  <p>The second one is just a single checkbox, lets say style2. </p>
  
  <p>But the third on has got lets say style3, as this will show that some of it's children checkboxes are checked but not all of them, clicking this will uncheck/check them all. </p>
  
  <p>I have got two questions.</p>
  
  <ol>
  <li><p>Is there a way to bind these checkboxes together using just XAML so that there is one master checkbox that will uncheck and check it's children, or will I have to use a C# Command?</p></li>
  <li><p>This is the main question, what is the best way to give the master checkbox a different style for when all checkboxes are checked and when only some are checked? </p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/jjid3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jjid3.jpg" alt="enter image description here"></a></p>