title: how to user color from global resources?
body: <p>I want to set my resources on the app.xaml and then use it in the differents views of the app, but when I set the color the app crashes u.u, could someone help me ?</p>
  
  <p>app.xaml</p>
  
  <pre><code> &lt;Application.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;Color x:Key="Primary"&gt;#FFC107&lt;/Color&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>use it in a StackLayout</p>
  
  <pre><code>    &lt;StackLayout Orientation="Vertical" BackgroundColor="{StaticResource Primary}"&gt;
  </code></pre>