Tweet
SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
Active Directory in VB.NET
ADO.NET in VB.NET
Algorithms and VB.NET
ASP.NET AJAX in VB.NET
ASP.NET Controls in VB.NET
ASP.NET using VB.NET
Assemblies in VB.NET
COM Interop in VB.NET
Cryptography in VB.NET
Crystal Reports in VB.NET
Database & DBA
Deployment in VB.NET
Design & Architecture
DirectX with VB.NET
Enterprise Development
Exception Handling in VB.NET
Games Programming in VB.NET
GDI+ in VB.NET
General
LINQ with VB.NET
Mobile Development in VB.NET
Multithreading in VB.NET
Networking with VB.NET
Office and VB.NET
Printing in VB.NET
Remoting in VB.NET
Reports in VB.NET
Security in VB.NET
Silverlight using VB.NET
Speech in VB.NET
Strings, Arrays in VB.NET
Tablet PC
Tablet PC with VB.NET
VB.NET Articles
VB.NET FAQ
VB.NET How do I
VB.NET Language
VB.NET Tutorials
VBA
Visual Basic 11
Visual Basic 2010
Visual Basic Language
WCF with VB.NET
Web Applications in VB.NET
Web Forms with VB.NET
Web Service in VB.NET
Windows Controls in VB.NET
Windows Forms with VB.NET
Windows Service in VB.NET
Workflow in VB.NET
WPF using VB.NET
XAML in VB.NET
XML in VB.NET
FORUMS
BLOGS
Use of Excel.AddUnique Method in MS Excel to D ...
Use of PPT.ApplyTheme.BackgroundStyle in MS P ...
Use of PPT.InteractWithChartLocation in MS Pow ...
Simple Web Report With Pivot Table and Linq to ...
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten pe ...
Use of PPT.ConvertTextToSmartArt in MS PowerP ...
How to Find Backup Folder Data Location Using ...
Calendar Control In WPF
Blog
How to Rotate a PloyLine in WPF
Posted by
Shalini Juneja
in
Blogs
|
WPF using VB.NET
on
Jun 09, 2011
In this blog you will learn that how to Rotate a PolyLine to a specific defined Angle.
Tweet
1319
0
0
Download Files:
PolyLine.zip
Here in this blog I am explaining that how we can Rotate a PolyLine with only some Lines of code in WPF. If we want to Rotate a PolyLine then we need a Canvas, PolyLine and Some Methods related to PolyLine.
<
Window
x
:
Class
="MainWindow"
xmlns
="
http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns
:
x
="
http://schemas.microsoft.com/winfx/2006/xaml
"
Title
="MainWindow"
Height
="350"
Width
="525">
<
Canvas
>
<
Polyline
Canvas.Left
="100"
Canvas.Top
="20"
Stroke
="Black"
StrokeThickness
="4"
Points
="20,20 110,0 110,110 0,110 0,30 90,30 90,90 30,90, 130,150 70,50 170,70 50,70" >
<
Polyline.LayoutTransform
>
<
RotateTransform
Angle
="45"
CenterX
="50"
CenterY
="50"/>
</
Polyline.LayoutTransform
>
</
Polyline
>
</
Canvas
>
</
Window
>
In this example we have used Layout Transform.
share this blog :
WPF Development Tips
post comment
Sponsored by
Become a Sponsor
More Blogs from this Blogger
Creating Directory or Folder in VB.NET using VB.NET
How to Rotate a PloyLine in WPF
How to Rotate a PloyLine in WPF
How to rotate a Rectangle in WPF?
Symmetric Key Encryption
Ingradients for Job Satisfaction
Positive approach to Work
View All
Latest Blogs
Second Life: Land of the WEAK home of the BROKEN
use of datagrid and sum column in datagrid
Retrieving content of other page using C#
Caching in ASP.NET
Reading a text file in Asp.net
Read Number from a String
Populate combobox from excel
Edit, update and cancel the records in the datagrid.
Sort data in datagrid
Streaming in WCF
View All
Sponsored by
Become a Sponsor