WinRT-在控件中显示动画GIF [英] WinRT - Display animated GIF in a control
本文介绍了WinRT-在控件中显示动画GIF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在Metro应用程序中显示动画GIF,但找不到任何允许它的控件. (我在Player框架中尝试了Image
,MediaElement
和MediaPlayer
)
I need to display an animated GIF in my metro app, but I can't find any control that allows it. (I tried Image
, MediaElement
and MediaPlayer
from the Player Framework)
是否可以通过某种方式显示GIF动画?
Is it possible somehow to display an animated GIF?
推荐答案
虽然我没有检查它是否有效,但由于空域问题,它可能对您不起作用-您可以尝试将gif托管在WebView控件中.它可能比Norbert和Carl提出的其他更好的解决方案容易得多.
While I haven't checked if it works and it might not work for you due to airspace issues - you could try hosting your gif in a WebView control. It might be a lot easier than the otherwise better solutions proposed by Norbert and Carl.
这篇关于WinRT-在控件中显示动画GIF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文