1.wpf使用动态图时在NuGet安装下面的包
2.wpf界面
3.在Window标签里面添加下面内容
xmlns:gif="http://wpfanimatedgif.codeplex.com"
4.在Grid标签里面添加下面内容
<Image Name="JiaZai" Height="100" Width="100" Opacity="1" gif:ImageBehavior.AnimatedSource="圈圈2.gif"/>
xmlns:gif="http://wpfanimatedgif.codeplex.com"
<Image Name="JiaZai" Height="100" Width="100" Opacity="1" gif:ImageBehavior.AnimatedSource="圈圈2.gif"/>