Silverlight动画 - 如何:不调整容器内的某些控件? [英] Silverlight animation - How to: don't resize some controls inside a container?

查看:72
本文介绍了Silverlight动画 - 如何:不调整容器内的某些控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Blend中的silverlight应用创建动画。动画是一个调整大小的边框控件。就像现在一样,边框内的所有控件也都会调整大小。有没有办法防止这种情况发生?是否可以决定容器内哪些控件应该调整大小以及哪些不应该?#
感谢您的帮助!

解决方案

将边框内的任何容器设置为固定大小,控件不会调整大小。类似于:

< Border>
< Grid Width =" 1024"高度="768">
<! - 当您为边框设置动画时,此处的控件将保持相同的大小 - >
< / Grid
< / Border>


I'm creating an animation for a silverlight app in Blend. The animation is a border control that is resized. As it is now, all the controls inside the border are resized too. Is there a way to prevent this from happening? Is it possible to decide which controls inside a container that should be resized and which should not?

Thanks for help!

解决方案

Set whatever container you have inside your Border to a fixed size and your controls won't resize. Something like:

<Border>
   <Grid Width="1024" Height="768">
      <!-- Your controls here will stay the same size when you animate the border -->
   </Grid
</Border>


这篇关于Silverlight动画 - 如何:不调整容器内的某些控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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