title: WPF Gradient in 2 directions
body: <p>If i want to make the edges of a selected item in a Listbox look smooth I do this:</p>
  
  <pre><code>&lt;Setter Property="Background" TargetName="Bd"&gt;
       &lt;Setter.Value&gt;
           &lt;LinearGradientBrush EndPoint="0,0" StartPoint="1,0"&gt;
             &lt;GradientStop Offset="0" Color="Transparent"/&gt;
             &lt;GradientStop Offset="0.05" Color="{x:Static SystemColors.HighlightColor}"/&gt;
             &lt;GradientStop Offset="0.95" Color="{x:Static SystemColors.HighlightColor}"/&gt;
             &lt;GradientStop Offset="1" Color="Transparent"/&gt;
           &lt;/LinearGradientBrush&gt;
       &lt;/Setter.Value&gt;
   &lt;/Setter&gt;
  </code></pre>
  
  <p>However, this only makes the left and right edge smooth, not the top and bottom. If I change StartPoint and EndPoint, I can make the top and bottom smooth, but then I loose the smoothness on the left&amp;right sides. So how can I make all 4 borders smooth using a Gradient brush?</p>