Rotate polyline : Polyline « Shapes « Silverlight






Rotate polyline

Rotate polyline
   

<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 Height="200" Width="200">
          <Polyline Points="25,25 0,50 25,75 50,50 25,25 25,0" Stroke="Blue" StrokeThickness="10"
            Canvas.Left="75" Canvas.Top="50">
            <Polyline.RenderTransform>
              <RotateTransform CenterX="25" CenterY="50" Angle="45" />
            </Polyline.RenderTransform>
          </Polyline>
          <Polyline Points="25,25 0,50 25,75 50,50 25,25 25,0" Stroke="Blue" StrokeThickness="10"
            Opacity="0.25" Canvas.Left="75" Canvas.Top="50" />           
        </Canvas>

</UserControl>

   

   
    
    
  








Related examples in the same category

1.Translate transform polylineTranslate transform polyline
2.Polyline by PointsPolyline by Points
3.Rotates the Polyline 45 degrees about the point (25,50)Rotates the Polyline 45 degrees about the point (25,50)
4.Rotates the Polyline 45 degrees about the point (0,0)Rotates the Polyline 45 degrees about the point (0,0)
5.Rotates the Polyline 45 degrees about its centerRotates the Polyline 45 degrees about its center
6.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).
7.Ployline types do not require connecting endsPloyline types do not require connecting ends
8.Polyline and Polyline.PointsPolyline and Polyline.Points
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