Keep certain Objects from scaling

2019-08-25 09:16发布

I have a WPF Canvas with a few objects on it and I apply a ScaleTransform animation to it (Zoom). As expected all objects scale with the canvas.

It is possible that some objects remain their size even if they are children of the canvas?

So far my only idea is another scale animation running in the opposite direction to scale to objects down again.

1条回答
不美不萌又怎样
2楼-- · 2019-08-25 09:34

Simply put, no. the ScaleTransform will catch an element, and all it's children. You can only resort to tricks like you suggested.

查看更多
登录 后发表回答