This is a migrated thread and some comments may be shown as answers.

Rotate UI Element on Map

2 Answers 102 Views
Map
This is a migrated thread and some comments may be shown as answers.
Stanislav Martinek
Top achievements
Rank 1
Stanislav Martinek asked on 05 Sep 2011, 03:30 PM
How can I rotate a Label on Map control about specific angle? I used to do it with this code:

Label

 

 

l = new Label();

 

 

 

l.RenderTransform = new RotateTransform() { Angle = -80};

 

But it doesn't work on Map control. Can you help me?

2 Answers, 1 is accepted

Sort by
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 06 Sep 2011, 12:36 PM
Hello Stanislav,

Check this online example here to see how you can use MapShape.CaptionTemplate / CaptionLocation properties to rotate certain labels in RadMap: http://demos.telerik.com/silverlight/#Map/Theatre (see Example.xaml and Example.xaml.cs).


Greetings,
Bart.
0
Stanislav Martinek
Top achievements
Rank 1
answered on 07 Sep 2011, 09:11 AM
Thanks, I tried it again and it works. It must have been my bug.
Tags
Map
Asked by
Stanislav Martinek
Top achievements
Rank 1
Answers by
Bartholomeo Rocca
Top achievements
Rank 1
Stanislav Martinek
Top achievements
Rank 1
Share this question
or