title: WPF TabItem Header Images
body: <p>I've got a TabControl in WPF with 3 tabs, and each tab has an image next to the title of the tab.  Here's an example</p>
  
  <pre><code>        &lt;TabItem&gt;
              &lt;TabItem.Header&gt;
                  &lt;StackPanel Orientation="Horizontal"&gt;
                      &lt;Image Name="img" Height="auto" Width="auto" Source="images/1.png" /&gt;
                      &lt;TextBlock Text="Login" Margin="2,0,0,0" VerticalAlignment="Center" /&gt;
                  &lt;/StackPanel&gt;
              &lt;/TabItem.Header&gt;
          &lt;/TabItem&gt;
  </code></pre>
  
  <p>When the tab is selected the text is black and the background is white, when its not it's a light gray color and a slightly darker text.  This works great, but what I can't figure out is how to change the images on the tabs that aren't selected?  Right now the images all look the same, green circle with a number inside, but when a tab is not selected I'd like it to change to a different image, i.e. images/1_notselected.png and images/2_notselected.png when tab is is the selected one.  Thanks!</p>