在 Windows Phone 上播放 GIF 8.1

Playing GIFs on Windows Phone 8.1

如何让 GIF 在 Windows Phone 8.1 应用程序上播放?我看到正常的图像控件 simplay 将 gif 显示为静态 image.How 我会像 Internet Explorer 那样在 运行 时间内实际播放 GIF 吗?

您可以使用 XamlAnimatedGif 来执行此操作。

超级好用。首先将命名空间添加到 Page 标签:

xmlns:gif="using:XamlAnimatedGif"

然后像这样显示 GIF:

<Image gif:AnimationBehavior.SourceUri="/Images/animated.gif" />

从 github 页面开始,它支持 WPF、Windows 8.1、Windows Phone 8.1 和通用 Windows 平台。