在 WPF 中,有人动画网格吗? [英] In WPF, has anybody animated a Grid?

查看:22
本文介绍了在 WPF 中,有人动画网格吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网格中有 2 列.当我单击一个按钮时,我希望第一列从当前位置向左移动到 0.因此,实际上,它会折叠起来,而我只能查看一列.

I have 2 columns in a Grid. When I click a button, I want the first column to animate to the left from it's current position to 0. So, in effect, it collapses and I'm left with just viewing a single column.

推荐答案

查看 this 视频培训链接,来自 Todd Miranda,向您展示了如何为网格控件的高度设置动画.我认为您可以轻松地使其适用于您的情况.

Check out this video training link, from Todd Miranda that shows you how to animate the height of a grid control. I think you could easily make it work for your case.

这篇关于在 WPF 中,有人动画网格吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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