title: WPF rectangle - round just top corners
body: <p>How can I have just the top corners rounded for a WPF rectangle? </p>
  
  <p>I created a border and set the <code>CornerRadius</code> property and inside the border I've added my rectangle, but it doesn't work, the rectangle is not rounded.</p>
  
  <pre><code>&lt;Border BorderThickness="1" CornerRadius="50,50,0,0" BorderBrush="Black"&gt;
      &lt;Rectangle Fill="#FF5A9AE0" Stretch="UniformToFill" ClipToBounds="True"/&gt;
  &lt;/Border&gt;
  </code></pre>