title: Xamarin's new way of performing OnPlatform StaticResource binding
body: <p>Previously I was able to do something like this </p>
  
  <pre><code>&lt;OnPlatform x:TypeArguments="Color" Android="{StaticResource Primary}"/&gt;
  </code></pre>
  
  <p>Now that, that syntax is deprecated, I'm trying to do this:</p>
  
  <pre><code>&lt;OnPlatform x:TypeArguments="Color"&gt;
     &lt;On Platform="Android"&gt;{StaticResource Primary}&lt;/On&gt;
  &lt;/OnPlatform&gt;
  </code></pre>
  
  <p>but I'm getting the following error:</p>
  
  <pre><code>Cannot convert "{StaticResource Primary}" into Xamarin.Forms.Color
  </code></pre>
  
  <p>How should my syntax be?</p>