title: Boxview "LinearGradientBrush"
body: <p>How can I do same gradient effect like in the code below in <code>xamarin forms</code>?</p>
  
  <p>The same effect in <code>WPF</code>:</p>
  
  <pre><code>&lt;Rectangle Width="200" Height="100"&gt;
    &lt;Rectangle.Fill&gt;
      &lt;LinearGradientBrush StartPoint="0,0" EndPoint="1,1"&gt;
        &lt;GradientStop Color="Yellow" Offset="0.0" /&gt;
        &lt;GradientStop Color="Red" Offset="0.25" /&gt;
        &lt;GradientStop Color="Blue" Offset="0.75" /&gt;
        &lt;GradientStop Color="LimeGreen" Offset="1.0" /&gt;
      &lt;/LinearGradientBrush&gt;
    &lt;/Rectangle.Fill&gt;
  &lt;/Rectangle&gt;
  </code></pre>
  
  <p>My Boxview in <code>xamarin forms</code>:</p>
  
  <pre><code>&lt;BoxView WidthRequest="100" Grid.RowSpan="2"&gt;
  
  &lt;/BoxView&gt;
  </code></pre>