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

            obj.CreateFromSourceString(s);
        }
Exemplo n.º 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;
            }
        }