Update GifImage.cs
This commit is contained in:
1 parent
b0ff7e5b00
commit
d3ba2e060c
1 file changed
+3
-1
@@ -39,11 +39,13 @@ namespace HandyControl.Controls
|
||||
private static void OnUriChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var ctl = (GifImage) d;
|
||||
ctl.StopAnimate();
|
||||
|
||||
if (e.NewValue != null)
|
||||
{
|
||||
var v = (Uri)e.NewValue;
|
||||
ctl.Source = new BitmapImage(v);
|
||||
ctl.GetGifStreamFromPack(v);
|
||||
ctl.StartAnimate();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user