Ejemplo n.º 1
0
        static void OnIsRunningChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            WorkingBar bar = obj as WorkingBar;

            if (bar != null)
            {
                bar.StartOrStopAnimations();
            }
        }
 public AnimationObserver(WorkingBar bar, DoubleAnimationBase animation)
 {
     this.bar = bar;
     this.animation = animation;
     this.animation.Completed += OnAnimationCompleted;
 }
Ejemplo n.º 3
0
 public AnimationObserver(WorkingBar bar, DoubleAnimationBase animation)
 {
     this.bar                  = bar;
     this.animation            = animation;
     this.animation.Completed += OnAnimationCompleted;
 }