【发布时间】:2017-07-02 10:10:01
【问题描述】:
【问题讨论】:
-
显示gif可能是您的应用程序的问题,因为浏览器通常支持GIF格式
-
GIF 和动画 GIF 仅在周年更新及更高版本中受支持。
【问题讨论】:
我不知道什么不适合你,但我很快做了一个演示项目,GIF 显示很好。
MainPage.xaml:
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Image Height="200" Width="200" Source="{x:Bind ImageSource, Mode=OneWay}"/>
</Grid>
MainPage.xaml.cs
public sealed partial class MainPage : Page
{
private string ImageSource { get; set; }
public MainPage()
{
this.InitializeComponent();
ImageSource = @"http://api.wunderground.com/api/9270a990901ad2ce/animatedradar/animatedsatellite/image.gif?num=5&delay=50&rad.maxlat=47.709&rad.maxlon=-69.263&rad.minlat=31.596&rad.minlon=-97.388&rad.width=640&rad.height=480&rad.rainsnow=1&rad.reproj.automerc=1&rad.num=5&sat.maxlat=47.709&sat.maxlon=-69.263&sat.minlat=31.596&sat.minlon=-97.388&sat.width=640&sat.height=480&sat.key=sat_ir4_bottom&sat.gtt=107&sat.proj=me&sat.timelabel=0&sat.num=5";
}
}
【讨论】:
OneWay 模式添加到您的x:Bind 中。