WPF UI 动画库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12409706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 05:20:05  来源:igfitidea点击:

WPF UI Animation Library

c#wpf

提问by Bathiya Priyadarshana

Can someone suggest a WPF library that we can use for animations? It should support animating transitions from one WPF form to another (like flip effects etc) and also been able to animate toolbox components (like labels etc).

有人可以建议我们可以用于动画的 WPF 库吗?它应该支持从一种 WPF 形式到另一种形式的动画过渡(如翻转效果等),并且还能够为工具箱组件(如标签等)设置动画。

This is not for a web application, so Silverlight libraries would not help that much. This is for a standalone Windows WPF forms application.

这不适用于 Web 应用程序,因此 Silverlight 库无济于事。这是一个独立的 Windows WPF 表单应用程序。

Thanks in advance

提前致谢

采纳答案by Colin Smith

There's some effects and transitions libraries on Codeplex.

Codeplex 上有一些效果和转换库。

And this one which lets you transition between different UserControls.

而这个可以让您在不同的 UserControls 之间转换。

In fact, have a good scout around on Codeplex and CodeProject and you will find several other libraries that may help you out.

事实上,在 Codeplex 和 CodeProject 上有一个很好的侦察员,你会发现其他几个可以帮助你的库。

回答by Dr. ABT

Try having a look at Transitionzwhich is a free open source WPF Animations library published and used by SciChart.

尝试查看Transitionz,它是SciChart发布和使用的免费开源 WPF 动画库。

WPF Animate Position and Opacity on property changed

WPF 动画位置和属性的不透明度已更改

It allows you to animate Opacity, Translate Transform, or Blur on attached property changed, on load, on visibility. With MVVM support allowing changes from a view model.

它允许您在附加属性更改时、加载时、可见性时为不透明度、平移变换或模糊设置动画。MVVM 支持允许从视图模型进行更改。

WPF Animate Blur on property changed

属性上的 WPF 动画模糊已更改

The Github wiki & source is here: https://github.com/ABTSoftware/SciChart.Wpf.UI/wiki/Transitionz-Library

Github wiki 和源代码在这里:https: //github.com/ABTSoftware/SciChart.Wpf.UI/wiki/Transitionz-Library

And NuGet is here: https://www.nuget.org/packages/SciChart.WPF.UI.Transitionz/

NuGet 在这里:https: //www.nuget.org/packages/SciChart.WPF.UI.Transitionz/

回答by Erre Efe

Telerikcontrols got what you wan't, but I'll suggest you to give it a try to the native WPF Animations, it isn't that hard and it's included right out the box (for free). Obviously working with something like Blendwill make your work pretty easier.

Telerik控件具有您想要的功能,但我建议您尝试一下原生 WPF 动画,它并不难,而且开箱即用(免费)。显然,使用Blend 之类的东西会让你的工作变得更容易。