title: XAML global style with gradient as background
body: <p>You can set a gradient background inside the xaml for a page like this</p>
  <pre><code>&lt;Button.Background&gt;
      &lt;LinearGradientBrush StartPoint=&quot;0,0&quot; EndPoint=&quot;1,1&quot;&gt;
          &lt;GradientStop Color=&quot;White&quot; Offset=&quot;0.6&quot; /&gt;
          &lt;GradientStop Color=&quot;Blue&quot; Offset=&quot;1.0&quot; /&gt;
      &lt;/LinearGradientBrush&gt;
  &lt;/Button.Background&gt; 
  </code></pre>
  <p>but when I search for the format to use when doing this in a global style like</p>
  <pre><code>&lt;ResourceDictionary&gt;
    &lt;Style TargetType=&quot;Button&quot;&gt;
      &lt;Setter Property=&quot;BorderColor&quot; Value=&quot;Lime&quot; /&gt;
      &lt;Setter Property=&quot;BorderRadius&quot; Value=&quot;10&quot; /&gt;
      ......
  </code></pre>
  <p>I find nothing usable. It seems that is might not even be doable? Most links even seem to think there is no direct support for gradients without plugins, so perhaps it is a new addition to xamarin forms?</p>
  <p>I specifically want to do this for buttons and contentpages, but I suspect the format will be the same for both - if it is supported at all.</p>