Polyline : WPF Shapes « WPF « ASP.Net






Polyline


<Canvas
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Width="300" Height="300">

  <Polyline Points="150, 150 150, 250 250, 250 250, 150"
    Stroke="Gray" StrokeThickness="5"   
    Canvas.ZIndex="3" />

  <Polygon Points="10,10 10,110 110,110 110,10"
    Stroke="Blue" StrokeThickness="10" Fill="LightBlue" />

  <Path Data="M 0,200 L100,200 50,50z"
      Stroke="LightYellow" Fill="Yellow"
      Canvas.Left="150" Canvas.Top="70" />

</Canvas>

 








Related examples in the same category

1.TextBlock
2.LinearGradientBrush
3.Ellipse
4.RectangleGeometry
5.Ellipse.OpacityMask
6.Rectangle.RenderTransform
7.Nested Canvas