tags:

views:

1959

answers:

3

Hello all,

<MediaElement LoadedBehavior="Play" Name="imgScan" Source="Images\Pre_Scan_RealImage.gif" Grid.Row="1" />

I have added above code in my WPF from which include animated GIF image, the problem is whenever form load I don't find any of the Image displayed on form, any suggestions ???

<Image Name="imgScan"  Source="Images\Pre_Scan_RealImage.gif" />

I even tried Image element shown above

+1  A: 

I even tried Image element shown above

And did it work or not? ;)

The MediaElement does not yet support pack URIs. That means you'll need to include the GIF as an external file, not a resource. That may be your problem, but you'll need to provide more info if not.

HTH, Kent

Kent Boogaart
+2  A: 

WPF at the moment doesn't natively support animated GIFs.

You can get around it by hosting the image in a PictureBox.

EDIT : Also checkout this thread for a bit more info.

PaulB
+1  A: 

I fond UserControl here for showing Animated GIFs, and guess what work just works as simple as Image control.

And thank you all

Prashant