msbg
msbg

Reputation: 4962

How to show a gif image in WinRT?

I am trying to show NON ANIMATED gif images in my WinRT app. My current solution is to use a server side converter to convert the images to png, and then load them into an Image control. I have limited bandwidth and would prefer to do it in-app. I used .Net Image Tools to do this on Windows Phone, but it does not appear to be available for Windows RT. I cannot show the images in a WebView because I need to show another element over the image. I know this is a duplicate of this, but that was closed by users who thought it was a duplicate of a question asking about showing animated gifs. My question is how to show NON ANIMATED gifs, and I can't seem to delete the old question.

Upvotes: 1

Views: 665

Answers (1)

Lukas_Skywalker
Lukas_Skywalker

Reputation: 2070

You can use the gif directly in XAML within the <Image> element. There is no need to convert it. Just set the Source attribute to the image.

Upvotes: 2

Related Questions