How to access color from App.xaml in C# in Xamarin Forms? : <p>In App.xaml I have this code:</p>

<pre><code>&lt;Application.Resources&gt;
    &lt;ResourceDictionary&gt;
        &lt;Color x:Key="Yellow"&gt;#ffd966&lt;/Color&gt;
    &lt;/ResourceDictionary&gt;
&lt;/Application.Resources&gt;
</code></pre>

<p>and in C# I have this code:</p>

<pre class="lang-cs prettyprint-override"><code>public Color BackgroundColor
{
    get { return IsSelected ? Color.Yellow : Color.White; }
}
</code></pre>

<p>And I would like to change Color.Yellow with color from App.xaml. How can I reference color from App.xaml in C#?</p>
