title: How to get UWP title bar default colors programmatically
body: <p>How to get UWP title bar color programmatically?</p>
  
  <p>I can easy set custom title bar colors with: </p>
  
  <pre><code>ApplicationView.GetForCurrentView().TitleBar.BackgroundColor
  ApplicationView.GetForCurrentView().TitleBar.ForegroundColor 
  </code></pre>
  
  <p>But how to get system title bar colors?
  E.g. If user set <em>Show color on title bar</em> option and use <em>Yellow</em> as Windows Accent Color then UWP App title bar <code>BackgroundColor</code> is <em>Yellow</em>.
  But <code>ApplicationView.GetForCurrentView().TitleBar.BackgroundColor</code> return <em>null</em>.</p>
  
  <p><a href="https://i.stack.imgur.com/Jj6aI.png" rel="nofollow noreferrer">Screenshot of win 10 color setting</a></p>