locked
Display .gif file in metro RRS feed

  • Question

  • Hello,

    i have  a .gif(animation image) file(StorageFile) i need to display in my app but when i displaying in my app it not moving(animating) why?

    code

    BitmapImage bitmap = new BitmapImage();
                IRandomAccessStream imageStream = await storageFile.OpenReadAsync();
                bitmap.CreateOptions = BitmapCreateOptions.IgnoreImageCache;
                bitmap.SetSource(imageStream);
    
    myImage.Source = bitmap;



    Santana George

    Wednesday, October 31, 2012 9:40 AM

Answers

  • You could try displaying it in a webview.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    • Marked as answer by Santana George Wednesday, October 31, 2012 4:36 PM
    Wednesday, October 31, 2012 2:56 PM
    Moderator

All replies