Inheritance: System.Windows.Controls.UserControl
Exemple #1
0
        private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            AnimationImage obj = (AnimationImage)d;
            string         s   = (string)e.NewValue;

            obj.CreateFromSourceString(s);
        }
Exemple #2
0
        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;
            }
        }