Rotate UI Element on Map

3 posts, 0 answers
  1. Stanislav Martinek
    Stanislav Martinek avatar
    4 posts
    Member since:
    May 2010

    Posted 05 Sep 2011 Link to this post

    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. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 06 Sep 2011 Link to this post

    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.
  3. DevCraft banner
  4. Stanislav Martinek
    Stanislav Martinek avatar
    4 posts
    Member since:
    May 2010

    Posted 07 Sep 2011 Link to this post

    Thanks, I tried it again and it works. It must have been my bug.
Back to Top