Polyline and Polyline.Points : Polyline « Shapes « Silverlight






Polyline and Polyline.Points

Polyline and Polyline.Points
   


<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'>

    <Canvas>
        <Polyline Stroke="Brown" StrokeThickness="4" StrokeDashArray="1 1" Canvas.Left="119" Canvas.Top="170" >
            <Polyline.Points>
                <Point X="0" Y="0"/>
                <Point X="30" Y="30"/>
                <Point X="60" Y="20"/>
                <Point X="100" Y="50"/>
            </Polyline.Points>
        </Polyline>
    </Canvas>
</UserControl>

   
    
    
  








Related examples in the same category

1.Rotate polylineRotate polyline
2.Translate transform polylineTranslate transform polyline
3.Polyline by PointsPolyline by Points
4.Rotates the Polyline 45 degrees about the point (25,50)Rotates the Polyline 45 degrees about the point (25,50)
5.Rotates the Polyline 45 degrees about the point (0,0)Rotates the Polyline 45 degrees about the point (0,0)
6.Rotates the Polyline 45 degrees about its centerRotates the Polyline 45 degrees about its center
7.Rotates the Polyline 45 degrees about the relative origin (0.25,0.25).Rotates the Polyline 45 degrees about the relative origin (0.25,0.25).
8.Ployline types do not require connecting endsPloyline types do not require connecting ends
9.PolyLine Segment DemoPolyLine Segment Demo
10.XAML Button with Polyline and TextBlockXAML Button with Polyline and TextBlock
11.Polyline stroke color in RGBPolyline stroke color in RGB
12.Set StrokeDashArray, StrokeDashCap for PolylineSet StrokeDashArray, StrokeDashCap for Polyline
13.Bevel StrokeLineJoin PolylineBevel StrokeLineJoin Polyline
14.StrokeStartLineCap for PolylineStrokeStartLineCap for Polyline
15.Polyline corner is cut off (beveled) because the miter limit is set to 1Polyline corner is cut off (beveled) because the miter limit is set to 1
16.Create a simple polyline, a closed polyline. And a Sine curve in code.Create a simple polyline, a closed polyline. And a Sine curve in code.
17.Populate the PointsCollection of the PolyLinePopulate the PointsCollection of the PolyLine
18.Polyline with Stroke color and Stroke thicknessPolyline with Stroke color and Stroke thickness
19.A PolylineA Polyline