Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

One Path with two EllipseGeometries

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Stretch">     <Canvas>       <Path Fill="Cyan" Stroke="Black">         <Path.Data>           <GeometryGroup>             <EllipseGeometry Center="20, 40" RadiusX="20" RadiusY="40" />             <EllipseGeometry Center="0, 0" RadiusX="10" RadiusY="30" />           </GeometryGroup>         </Path.Data>       </Path>     </Canvas> </Page>