title: WPF: Visual studio like error buttons
body: <p>I want to get this.</p>
  
  <p><a href="http://www.shrani.si/f/X/6Y/24Jhn9D3/buttns.png" rel="nofollow noreferrer">buttons http://www.shrani.si/f/X/6Y/24Jhn9D3/buttns.png</a></p>
  
  <p>Everything works so far, buttons act as filter and are bind to the grid control.
  All i want is the icons and counter on the button.
  Whats the correct way of implementing those?</p>
  
  <pre><code>&lt;ToggleButton x:Name="IsErrorShown" Margin="4" Width="100" Content="{lex:LocText Errors, Assembly=Client}"&gt;
  </code></pre>
  
  <p>I have tried adding image like this:</p>
  
  <pre><code>            &lt;ToggleButton x:Name="IsErrorShown" Margin="4" Width="100" Content="{lex:LocText Errors, Assembly=Client}"&gt;
              &lt;StackPanel&gt;
                  &lt;Image Source="Resources/Warning"/&gt;
              &lt;/StackPanel&gt;
          &lt;/ToggleButton&gt;
  </code></pre>
  
  <p>but i get error that prop. Content is defined more then once.</p>