Mic*_*eyn 1 .net wpf animation .net-4.0 c#-4.0
是否有任何简单的方法可以正常运行基于WPF故事板的动画,然后反向运行它以将所有内容恢复到原始状态?
我想以编程方式执行此操作:
Storyboard sb=new Storyboard();
...
sb.Begin();
// Now how to do I run sb in reverse, to move things to where they were
// before the sb started?
Run Code Online (Sandbox Code Playgroud)
例如,您可能有一个动画,其中椭圆从左向右移动,并且您希望它在结尾处向后移动到它开始的位置:

| 归档时间: |
|
| 查看次数: |
742 次 |
| 最近记录: |