AnimationController
Describe how to create powerful animations with the AnimationController class
new AnimationController
{
new SequenceAnimation
{
new DoubleAnimation()
.StartValue(0)
.TargetValue(300)
.Duration(TimeSpan.FromSeconds(2.5))
.Easing(Easing.CubicOut)
.OnTick(v => ....),
new DoubleAnimation()
.StartValue(0)
.TargetValue(300)
.Duration(TimeSpan.FromSeconds(1.5))
.OnTick(v => ....)
}
new SequenceAnimation
{
new DoubleAnimation()
.StartValue(0)
.TargetValue(300)
.Duration(TimeSpan.FromSeconds(2))
.OnTick(v => ....),
new CubicBezierPathAnimation()
.StartPoint(new Point(0,100))
.EndPoint(new Point(300,100))
.ControlPoint1(new Point(0,0))
.ControlPoint2(new Point(300,200))
.OnTick(v => ....),
new QuadraticBezierPathAnimation()
.StartPoint(new Point(300,100))
.EndPoint(new Point(0,100))
.ControlPoint(new Point(150,200))
.OnTick(v => ....)
}
}Last updated