远离缩放特定对象 [英] Keep certain Objects from scaling

查看:120
本文介绍了远离缩放特定对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WPF画布,上面有几个对象,我应用Sca​​leTransform动画它(缩放)。正如预期的所有对象规模与画布。

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.

推荐答案

简单地说,没有。在ScaleTransform将捕获的元素,和它所有的孩子们。您只能求助于招数喜欢你的建议。

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

这篇关于远离缩放特定对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆