Mega Code Archive

 
Categories / VB.Net / WPF
 

Put RectangleGeometry to GeometryGroup

<Window x:Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="200" Width="250">     <Canvas Margin="10">         <Path Canvas.Left="70" Stroke="Black" StrokeThickness="3">             <Path.Data>                 <GeometryGroup>                     <EllipseGeometry Center="410,40" RadiusX="2" RadiusY="2"/>                     <RectangleGeometry Rect="310,120 20,10"/>                 </GeometryGroup>             </Path.Data>         </Path>     </Canvas> </Window>