Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Rotate Polyline

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="300" Width="450">     <Canvas>         <Polyline Canvas.Left="90" Canvas.Top="10" Stroke="Black" StrokeThickness="5"                   Points="10,10 100,0 100,100 0,100 0,20 80,20 80,80 20,80, 120,140 60,40 160,60 40,60" >             <Polyline.LayoutTransform>                 <RotateTransform Angle="45" CenterX="50" CenterY="50"/>             </Polyline.LayoutTransform>         </Polyline>     </Canvas> </Window>