Mega Code Archive

 
Categories / C# / WPF
 

Combined geometries GeometryCombineMode=Exclude

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Center" VerticalAlignment="Center">         <Path Fill="Cyan" Stroke="Black">           <Path.Data>               <CombinedGeometry GeometryCombineMode="Exclude">               <CombinedGeometry.Geometry1>                 <RectangleGeometry Rect="0,0,50,50" />               </CombinedGeometry.Geometry1>               <CombinedGeometry.Geometry2>                 <EllipseGeometry Center="50,25" RadiusX="30" RadiusY="10" />               </CombinedGeometry.Geometry2>             </CombinedGeometry>           </Path.Data>         </Path> </Page>