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; }