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

            obj.CreateFromSourceString(s);
        }
예제 #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;
            }
        }