private static void OnAnimatedControlChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
        {
            AnimatedImage control = (AnimatedImage)obj;

            if (control.ImageName == null)
            {
                return;
            }

            if ((bool)args.NewValue == true)
            {
                control.StartAnimate();
            }
            if ((bool)args.NewValue == false)
            {
                control.StopAnimate();
            }
        }