This is a migrated thread and some comments may be shown as answers.
Change the location of the rotation thumb
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Egemen
Top achievements
Rank 1
Egemen asked on 22 May 2013, 04:35 PM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Francois Vanderseypen
Top achievements
Rank 2
answered on 22 May 2013, 05:33 PM
Egemen,

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.
Asked by
Egemen
Top achievements
Rank 1
Answers by
Francois Vanderseypen
Top achievements
Rank 2
Share this question
or