title: Path Intersection Removing excess path
body: <p>Hej</p>
  <p>Lets say I have a cirkel as my usercontrol in a Windows Phone 8 application, And I add elements inside a Geometry group, with a rectangel and a line. I would get the following:</p>
  <p><a href="https://i.stack.imgur.com/YtsZq.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YtsZq.gif" alt="a usercontrol" /></a><br />
  <sub>(source: <a href="http://www.c-sharpcorner.com/UploadFile/mahesh/path-in-wpf/Images/PathImg2.gif" rel="nofollow noreferrer">c-sharpcorner.com</a>)</sub></p>
  <p>I am interested in having my cirkel as the main element. To specify I want the everything else to only be displayed in the region of the cirkel.
  So if the rectangle was red I would only get the red corner displayed.</p>
  <p>I have code that can manage inserting and moving objects. But I do not know how to make the intersect work opporsit of the picture.</p>
  <p>I have tried a bit of the same in a small sample as is done in this link:
  the link is <a href="http://www.c-sharpcorner.com/uploadfile/mahesh/path-in-wpf/" rel="nofollow noreferrer">http://www.c-sharpcorner.com/uploadfile/mahesh/path-in-wpf/</a></p>
  <p>Anybody has an idea for this?</p>
  <p><strong>Best</strong>
  So the Best solution I found is to convert your element to WriteableBitmap, and then setting this as the background of your wished shape.</p>