private void EnterColorAnimation() { if (_enterClock.IsPaused) //resume the animation { _enterColorAnimation.From = _animatedBrush.Color; _animatedBrush.ApplyAnimationClock(SolidColorBrush.ColorProperty, _enterClock); _enterClock.Controller.Resume(); } else //begin a new animation { _enterColorAnimation.From = _greenBrush; _animatedBrush.ApplyAnimationClock(SolidColorBrush.ColorProperty, _enterClock); _enterClock.Controller.Begin(); } Background = _animatedBrush; }