title: C# UWP set Tabpage backgroundcolor
body: <p>I've created a Tabpage on a Microsoft.UI.Xaml.Controls Tabcontrol like this:</p>
  <pre><code>        muxc.TabViewItem TabPage = new muxc.TabViewItem();
          TabPage.Name = &quot;MyTab&quot;;
          TabPage.Header = &quot;Title.txt&quot;;
          TabPage.Background = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0));
          MyTabControl.TabItems.Add(TabPage);
  </code></pre>
  <p>So now I tried to change the backgroundcolor of the Tabpage:</p>
  <pre><code>        TabPage.Background = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0));
  </code></pre>
  <p>But the tabpage backgroundcolor hasn't changed.<br />
  Does anyone know what i did wrong?</p>
  <p><a href="https://i.stack.imgur.com/fnX2a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fnX2a.png" alt="enter image description here" /></a></p>