/// <inheritdoc/> public void UpdateAndApplyAnimation(IAnimatableObject animatedObject) { if (animatedObject == null) return; foreach (var animatedProperty in animatedObject.GetAnimatedProperties()) UpdateAndApplyAnimation(animatedProperty); }
/// <inheritdoc/> public void StopAnimation(IAnimatableObject animatedObject) { if (animatedObject == null) return; foreach (var animatedProperty in animatedObject.GetAnimatedProperties()) StopAnimation(animatedProperty); }
/// <inheritdoc/> public bool IsAnimated(IAnimatableObject animatableObject) { if (animatableObject == null) throw new ArgumentNullException("animatableObject"); foreach (var animatableProperty in animatableObject.GetAnimatedProperties()) if (IsAnimated(animatableProperty)) return true; return false; }
//-------------------------------------------------------------- #region Methods //-------------------------------------------------------------- /// <inheritdoc/> public bool IsAnimated(IAnimatableObject animatableObject) { if (animatableObject == null) { throw new ArgumentNullException("animatableObject"); } foreach (var animatableProperty in animatableObject.GetAnimatedProperties()) { if (IsAnimated(animatableProperty)) { return(true); } } return(false); }