// -----------------------------------------------------------------------
//
// Copyright 2014 MIT Licence. See licence.md for more information.
//
// -----------------------------------------------------------------------
namespace Perspex.Animation
{
using System;
///
/// Defines how a property should be animated using a transition.
///
public class PropertyTransition
{
///
/// Initializes a new instance of the class.
///
/// The property to be animated/
/// The duration of the animation.
/// The easing function to use.
public PropertyTransition(PerspexProperty property, TimeSpan duration, IEasing easing)
{
this.Property = property;
this.Duration = duration;
this.Easing = easing;
}
///
/// Gets the property to be animated.
///
///
/// The property to be animated.
///
public PerspexProperty Property { get; }
///
/// Gets the duration of the animation.
///
///
/// The duration of the animation.
///
public TimeSpan Duration { get; }
///
/// Gets the easing function used.
///
///
/// The easing function.
///
public IEasing Easing { get; }
}
}