Change the location of the rotation thumb

2 posts, 0 answers
  1. Egemen
    Egemen avatar
    34 posts
    Member since:
    Apr 2012

    Posted 22 May 2013 Link to this post


    I'd like to change the location of the rotation thumb. I'd like to put this in the middle of the shape (not above the shape).
    How can i do this?

    Best regards

  2. Francois Vanderseypen
    Francois Vanderseypen avatar
    46 posts
    Member since:
    Oct 2009

    Posted 22 May 2013 Link to this post


    look for the control template of the ManipulationAdorner, it contains the Path with name RotationPart. Out of the box, this Path has HorizontalAlignment 'Center' and VerticalAlignment 'Top', so just alter it to Center-Center or wherever you'd like it.
    Note that you will no be able to use a Style to do this but need to edit the whole control template. Once done, just give it a Key (or do not assign a Key and it will be applied application-wide) and put it in your XAML resources (that is, in Window.Resources or App.Resources). 

    Hope this helps, Fr.
  3. DevCraft banner
Back to Top