Keep certain Objects from scaling

感情迁移 提交于 2019-12-13 05:50:42

问题


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:


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



来源:https://stackoverflow.com/questions/10125952/keep-certain-objects-from-scaling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!