在 WPF 中显示 GIF 动画图像的最佳方式是什么?
我想在程序进行过程中在 XAML 中显示动画 gif,例如“loading...”。我发现这在 WPF 中不容易完成,因为我加载了 Gif 并且它只显示了第一帧。在 WPF 中显示动画的最佳方式是什么?
I would like to display an animation gif such as loading... in my XAML as my procedure is progressing. I found out that this cannot be easily done in WPF as I loaded my Gif and it just shows the first frame. What are the best ways to display an animation in WPF.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下代码在 WPF 应用程序中加载 GIFImage
您使用它的方式如下......
让我知道这是否对您有帮助。
You can use the following code for loading GIFImage in a WPF app
The way you use it as follows....
Let me know if this helps you.