title: Fit Border around arbitrary Path
body: <p>I have a Path based on a group of rectangle/ellipse Geometry. When I put an auto-sized Border around it, the border shrinks to fit the RectangleGeometry but does something weird with the EllipseGeometry, as shown below. Anyone know how to fix it so the Border (shown in blue) fits snugly around the whole thing?</p>
  
  <p>Ultimately, I want a Border or a Panel that fits an arbitrary, runtime-generated Path (including the stroke thickness), and I need the geometry size maintained.</p>
  
  <p><a href="https://i.stack.imgur.com/biilo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/biilo.png" alt="screenshot"></a></p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;Border BorderBrush="Blue" BorderThickness="2"
          HorizontalAlignment="Center" VerticalAlignment="Center"&gt;
      &lt;Path Stroke="Orange" StrokeThickness="5" Fill="Red"&gt;
          &lt;Path.Data&gt;
              &lt;GeometryGroup&gt;
                  &lt;EllipseGeometry Center="-10,-10" RadiusX="12" RadiusY="12" /&gt;
                  &lt;EllipseGeometry Center="70,0" RadiusX="70" RadiusY="10"&gt;
                      &lt;EllipseGeometry.Transform&gt;
                          &lt;RotateTransform Angle="-25" CenterX="50" CenterY="0" /&gt;
                      &lt;/EllipseGeometry.Transform&gt;
                  &lt;/EllipseGeometry&gt;
                  &lt;RectangleGeometry Rect="0,0,100,100" /&gt;
              &lt;/GeometryGroup&gt;
          &lt;/Path.Data&gt;
      &lt;/Path&gt;
  &lt;/Border&gt;
  </code></pre>