Wpf implementation of Gif.
1
| public class GifImage : Image, IDisposable
|
Attributes
Property |
Description |
Default Value |
Remarks |
Uri |
Picture Uri |
|
|
Case
1
| <hc:GifImage x:Name="GifImageMain" Stretch="None" Margin="32" Uri="/HandyControlDemo;component/Resources/Img/car_chase.gif"/>
|
or
1 2 3 4 5
| <hc:GifImage Width="400" Height="300"> <hc:GifImage.Source> <BitmapImage UriSource="/HandyControlDemo;component/Resources/Img/car_chase.gif"/> </hc:GifImage.Source> </hc:GifImage>
|
When you no longer use GifImage
, remember to call the Dispose
method to clean up resources.