可以使用FluidMoveBehavior吗?

编程入门 行业动态 更新时间:2024-10-09 19:23:51
本文介绍了可以使用FluidMoveBehavior吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在尝试制作动画的代码中调用了Grid.SetRow和Grid.SetColumn.根据 http:上的答案: //social.msdn.microsoft/Forums/zh-CN/wpf/thread/257779f7-b459-43fc-a4a1-f24641c50e09 ,建议使用FluidMoveBehavior,但看起来不像Windows 8可用.

I have calls to Grid.SetRow and Grid.SetColumn in my code which I'm trying to animate. According to the answer at social.msdn.microsoft/Forums/en-CA/wpf/thread/257779f7-b459-43fc-a4a1-f24641c50e09, it is recommended to make use of FluidMoveBehavior, but it doesn't look like this is available for Windows 8.

当网格的子项位置改变时,我可以为它们做些什么选择?我基本上是在寻找一种实现线性过渡的方法.

What are my options for animating the children of a Grid when their positions change? I'm basically looking for a way to achieve linear transition.

推荐答案

有一个名为Transitions的新内置功能可以使用,这是简介.尝试将RepositionThemeTransition添加到网格ChildrenTransitions中,然后在更改项目的行或列时对其进行动画处理.

There is a new built-in feature called Transitions that can be used, here is an intro. Try adding a RepositionThemeTransition to the grids ChildrenTransitions then items will animate when you change their row or column.

<Grid.ChildrenTransitions> <TransitionCollection> <RepositionThemeTransition/> </TransitionCollection> </Grid.ChildrenTransitions>

更多推荐

可以使用FluidMoveBehavior吗?

本文发布于:2023-10-26 18:05:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530929.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:可以使用   FluidMoveBehavior

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!