WPF页面元素中加入gif动画的方法

需要加入对命名空间的引用:

xmlns:gif="http://wpfanimatedgif.codeplex.com"


然后在下面的用法是:

<Image gif:ImageBehavior.AnimatedSource="/ScreenManager;component/Resources/loading.gif" Width="60" Height="60" />

你可能感兴趣的:(WPF页面元素中加入gif动画的方法)