Multiple Line Segments : Path « Shapes « Silverlight






Multiple Line Segments

Multiple Line Segments
    
<UserControl x:Class='SilverlightApplication3.MainPage'
    xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' 
    xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'
    xmlns:d='http://schemas.microsoft.com/expression/blend/2008' 
    xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006' 
    mc:Ignorable='d' 
    d:DesignWidth='640' 
    d:DesignHeight='480'>
    <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>

</UserControl>

   
    
    
    
  








Related examples in the same category

1.Path Mini-language Commands
2.Creating a Path
3.Curves and AnimationCurves and Animation
4.Line Joins MiterLine Joins Miter
5.Discrete Point Jumps
6.Creating Elliptic Arcs with PathCreating Elliptic Arcs with Path
7.Elliptic Arcs with ArcSegment Objects
8.Path with fill rule F1 = NonZero
9.Path DataPath Data
10.Use Ellipse Geometry as Path DataUse Ellipse Geometry as Path Data
11.Use RectangleGeometry as Path DataUse RectangleGeometry as Path Data
12.Vertical Line with PathVertical Line with Path
13.Horizontal Line with PathHorizontal Line with Path
14.Line with PathLine with Path
15.Path gradient and BezierPath gradient and Bezier
16.Single Bezier
17.Overlapping StarsOverlapping Stars
18.Path Mini LanguagePath Mini Language
19.Multiple SubpathsMultiple Subpaths
20.Close Path CommandClose Path Command
21.Path.Data with LineSegmentPath.Data with LineSegment
22.Path Margin as resourcePath Margin as resource
23.Shorthand Path dataShorthand Path data
24.Drawn with a Path Shape with GeometryDrawn with a Path Shape with Geometry
25.Mini Language InfinityMini Language Infinity