private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AnimationImage obj = (AnimationImage)d; string s = (string)e.NewValue; obj.CreateFromSourceString(s); }
private static void OnStretchDirectionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { AnimationImage obj = (AnimationImage)d; StretchDirection s = (StretchDirection)e.NewValue; if (obj._gifAnimation != null) { obj._gifAnimation.StretchDirection = s; } else if (obj._image != null) { obj._image.StretchDirection = s; } }