using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Media.Animation; namespace Tango.Editors { /// /// Represents an animation definition including the actual animation, the dependency object and dependency property. /// public class AnimationSetup { /// /// Initializes a new instance of the class. /// public AnimationSetup() { } /// /// Initializes a new instance of the class. /// /// The animation. /// The dependency object. /// The dependency property. public AnimationSetup(AnimationTimeline animation, DependencyObject dependencyObject, DependencyProperty dependencyProperty) { Animation = animation; DependencyObject = dependencyObject; DependencyProperty = dependencyProperty; } /// /// Gets or sets the animation. /// public AnimationTimeline Animation { get; set; } /// /// Gets or sets the dependency object. /// public DependencyObject DependencyObject { get; set; } /// /// Gets or sets the dependency property. /// public DependencyProperty DependencyProperty { get; set; } /// /// Clones animation setup. /// /// public AnimationSetup Clone() { return new AnimationSetup(Animation.Clone(), DependencyObject, DependencyProperty); } } }