Single Bezier

image_pdfimage_print


   
   

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Path Fill="Red" Stroke="Blue" StrokeThickness="3">
        <Path.Data>
            <GeometryGroup>
                <PathGeometry>
                    <PathFigure x:Name="fig" 
                                StartPoint="50 150" IsFilled="False" >
                        <BezierSegment 
                            Point1="25 25" Point2="400 300" Point3="450 150" />
                    </PathFigure>
                </PathGeometry>
    
                <EllipseGeometry Center="{Binding ElementName=fig, 
                                                  Path=StartPoint}" 
                                 RadiusX="5" RadiusY="5" />

                <EllipseGeometry Center="{Binding ElementName=fig, 
                                                  Path=Segments&#91;0&#93;.Point1}" 
                                 RadiusX="5" RadiusY="5" />

                <EllipseGeometry Center="{Binding ElementName=fig, 
                                                  Path=Segments&#91;0&#93;.Point2}" 
                                 RadiusX="5" RadiusY="5" />

                <EllipseGeometry Center="{Binding ElementName=fig, 
                                                  Path=Segments&#91;0&#93;.Point3}" 
                                 RadiusX="5" RadiusY="5" />
            </GeometryGroup>
        </Path.Data>
    </Path>
</Canvas>

   
    
    
     


Overlapping Stars

image_pdfimage_print


   
   
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Path Fill="Aqua" Stroke="Maroon" StrokeThickness="3">
        <Path.Data>
            <PathGeometry>
                <PathFigure StartPoint="144 72" IsClosed="True">
                    <PolyLineSegment Points="200 246, 53 138, 235 138, 88 246" />
                </PathFigure>
                <PathFigure StartPoint="168 96" IsClosed="True">
                    <PolyLineSegment Points="224 260, 77 162, 259 162, 112 270" />
                </PathFigure>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

   
    
    
     


Overlapping Rectangles

image_pdfimage_print


   
   

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Path Fill="Gold" Stroke="Red" StrokeThickness="3">
        <Path.Data>
            <RectangleGeometry Rect="96 96 192 192" />
        </Path.Data>
    </Path>

    <Path Fill="Blue" Stroke="Red" StrokeThickness="3">
        <Path.Data>
            <RectangleGeometry Rect="192 192 192 192" />
        </Path.Data>
    </Path>

    <Path Fill="Red" Stroke="Red" StrokeThickness="3">
        <Path.Data>
            <GeometryGroup>
                <RectangleGeometry Rect="480 96 192 192" />
                <RectangleGeometry Rect="576 192 192 192" />
            </GeometryGroup>
        </Path.Data>
    </Path>

</Canvas>

   
    
    
     


Multiple Line Segments

image_pdfimage_print


   
   

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Path Fill="Aqua" Stroke="Maroon" StrokeThickness="3">
        <Path.Data>
            <PathGeometry>
                <PathFigure StartPoint="144 72">
                    <LineSegment Point="200 246" />
                    <LineSegment Point="53 138" />
                    <LineSegment Point="235 138" />
                    <LineSegment Point="88 246" />
                </PathFigure>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

   
    
    
     


Figure With Arcs

image_pdfimage_print
   
   

<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Path Fill="Aqua" Stroke="Maroon" StrokeThickness="3">
        <Path.Data>
            <PathGeometry>
                <PathFigure StartPoint="92 92">
                    <ArcSegment Point="92 88" Size="48 48" />
                    <LineSegment Point="80 88" />
                    <ArcSegment Point="40 192" Size="488 48" />
                    <LineSegment Point="400 192" />
                    <ArcSegment Point="88 92" Size="48 48" />
                    <LineSegment Point="192 192" />
                </PathFigure>
                <PathFigure StartPoint="336 200" IsClosed="True">
                    <ArcSegment Point="36 176" Size="12 12" />
                    <ArcSegment Point="336 200" Size="122 12" />
                </PathFigure>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>