wpf rotate image around center

后端 未结 1 1923
北荒
北荒 2020-12-28 15:13

I have an image on a button which I would like to rotate when the user clicks it. I allmost have it to work. The image rotates fine on click, but it doesn\'t rotate round it

1条回答
  •  梦毁少年i
    2020-12-28 15:14

    Just set RenderTransformOrigin to (0.5, 0.5) on the image

    
    ...
    

    0 讨论(0)
提交回复
热议问题