title: Changing active tab's background in C# and XAML
body: <p>OK, I've searched everywhere and in every single link I go to my problem is explained with <code>xaml</code> code.</p>
  
  <p>I want to change the active tab's background and foreground (<em>not its content, but the upper part which you select in order to make active</em>) in a WPF project, <strong>but I'm looking for the C# code.</strong> The code below doesn't work for me:</p>
  
  <pre><code>if (tabs[0].IsEnabled) tabs[0].Background = Brushes.Blue;
  
  else tabs[0].Background = Brushes.Black;
  </code></pre>