Polylines And Polygons : Polyline « Windows Presentation Foundation « VB.Net Tutorial






<Window x:Class="Drawing.PolylinesAndPolygons"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="PolylinesAndPolygons" Height="534" Width="377">

    <Canvas>
        <Polyline Stroke="Blue" StrokeThickness="5" 
        Points="10,150 30,140 50,160 70,10 190,170 110,120 130,10 1150,110 170,190 190,100 210,240" >
        </Polyline>
        <Polygon Stroke="Blue" StrokeThickness="5" Fill="Yellow" Canvas.Top="200" 
        Points="10,150 30,140 5,160 70,10 190,170 110,120 130,10 1150,110 170,190 190,10 210,240" >
        </Polygon>
    </Canvas>

</Window>








16.72.Polyline
16.72.1.Polylines And PolygonsPolylines And Polygons
16.72.2.Polyline with OuterGlowBitmapEffectPolyline with OuterGlowBitmapEffect
16.72.3.Apply a Drop Shadow Effect to UI Element PolylineApply a Drop Shadow Effect to UI Element Polyline
16.72.4.A PolylineA Polyline
16.72.5.Black PolylineBlack Polyline
16.72.6.Stroke Thicker PolylineStroke Thicker Polyline
16.72.7.Scale Graphics ElementsScale Graphics Elements
16.72.8.Rotate PolylineRotate Polyline
16.72.9.Skew PolylineSkew Polyline
16.72.10.Fills the polylines with a light gray colorFills the polylines with a light gray color
16.72.11.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.
16.72.12.Populate the PointsCollection of the PolyLinePopulate the PointsCollection of the PolyLine
16.72.13.Draw a Sequence of Connected LinesDraw a Sequence of Connected Lines