回答
我不知道什麼是工作不適合你,但我迅速做了一個示範項目和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'也。 –
單向或一次性無關緊要,除非您還添加了一個變化通知ImageSouce財產。 – Clemens
謝謝!它的工作原理 另一個查詢:我想使用url 的BitmapImage I2 =新的BitmapImage(新的URI(「http://api.wunderground.com/api/9270a990901ad2ce/radar/image.gif?centerlat=38¢erlon=定義圖像-96.4&radius = 100&width = 280&height = 280&newmaps = 1「,UriKind.Absolute)); 我想要定義,並通過上述BitmapImage的語法修改插入我的自定義centerlat和centerlon,我試圖解析緯度和經度使用的String.Format一點不work.Thanks參數! –
- 1. 如何在android中顯示gif圖像?
- 2. 顯示GIF圖像
- 3. .gif使用OpenGl的圖像顯示
- 4. 如何使用WindowsPhotoGallery在Java中顯示gif圖像?
- 5. 如何在輪播中使用圖像URL顯示圖像?
- 6. UWP - 如何註釋圖像(xaml/c#)
- 7. 如何顯示圖像加載使用jQuery的gif
- 8. 在gif上顯示圖像
- 9. UWP如何從網絡目錄中顯示圖像
- 10. 如何使用Swift 3(Xcode 8.1)隨機顯示gif圖像?
- 11. UWP xaml:如何顯示帶有圖標和文本的按鈕?
- 12. 從URL顯示圖像
- 13. 圖像不顯示XAML
- 14. 如何在android中從url中播放動畫GIF圖像?
- 15. 如何在android中使用gif圖像?
- 16. 無法在使用Qt的MIPSel設備中顯示gif圖像
- 17. 如何顯示使用url存儲在變量中的圖像?
- 18. 如何突出顯示html頁面中的gif圖像
- 19. 從多圖像(動畫)GIF文件顯示單個圖像
- 20. 如何使用QSplashScreen使用gif圖像?
- 21. 如何僅使用XAML在我的Wpf窗口中顯示位圖圖像?
- 22. 顯示圖像(從Url)在ImageView中
- 23. 如何在UWP下顯示xaml中的數組C#
- 24. 如何使gif圖像顯示爲啓動畫面
- 25. 如何使用glgif在iPhone的子視圖中顯示gif?
- 26. 如何顯示來自url的圖像
- 27. 如何顯示來自url的圖像
- 28. 如何在iPhone中顯示從URL下載的圖像?
- 29. 如何在html中使用url顯示視頻或圖像?
- 30. 如何在html頁面中使用數據url顯示圖像
這可能是烏拉圭回合的應用程序,以顯示GIF的問題,因爲瀏覽器通常支持GIF格式 – moh89
GIF和動畫GIF僅在週年紀念更新及以上版本中受支持。 –