开发者

Does RenderTransformOrigin influence scale transforms?

开发者 https://www.devze.com 2023-03-03 01:54 出处:网络
I am trying to do scale transforms on an InkCanvas and some unseen force seems to be influencing how the scale works. When I try to set CenterX and CenterY they appear to be being ignored.

I am trying to do scale transforms on an InkCanvas and some unseen force seems to be influencing how the scale works. When I try to set CenterX and CenterY they appear to be being ignored.

Update: I should note that the ink canvas is wrapped with a viewbox, I suppose that 开发者_如何学Gocould be influencing it too...


I tried it out and it does. E.g. in order to make a control sweep from right to left I moved the RenderTransformOrigin to "1, 0" .

I am not certain about the documentation but it could be that CenterX/Y relate not to normalized proportions but to the actual size of the UIElement. If that's the case it is sort of useless.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号