using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Animation; using Tango.Editors; namespace Tango.Editors { /// /// Represents an animation configuration which can be applied to an object when invoking the method. /// /// /// public class ConfigurationAnimation { /// /// Occurs when the animation is completed. /// public event EventHandler AnimationCompleted; /// /// Gets or sets the animation duration. /// public TimeSpan Duration { get; set; } /// /// Gets or sets the acceleration ratio. /// public double AccelerationRatio { get; set; } /// /// Gets or sets the deceleration ratio. /// public double DecelerationRatio { get; set; } /// /// Gets or sets the easing function. /// public IEasingFunction EasingFunction { get; set; } /// /// Raises the animation completed event. /// /// The object. public void RaiseAnimationCompleted(Object obj) { if (AnimationCompleted != null) AnimationCompleted(this, obj); } /// /// Initializes a new instance of the class. /// public ConfigurationAnimation() { } /// /// Initializes a new instance of the class. /// /// The animation duration. public ConfigurationAnimation(TimeSpan duration) : this() { Duration = duration; } } }