actor.PositionX = 0.0f;
Window.Instance.GetDefaultLayer().Add(actor);
- Animation animation = new Animation(1000);
+ Animation animation = new Animation(500);
float targetPositionX = 1.0f;
animation.AnimateTo(actor, "PositionX", targetPositionX, new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear));
- animation.EndAction = Animation.EndActions.Cancel;
+ //this should be StopFinal because it checks the target value of the Animation.
+ animation.EndAction = Animation.EndActions.StopFinal;
animation.Play();
await Task.Delay(1020);
animation.Clear();
- await Task.Delay(100);\r
-\r
- //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;\r
- const float ANIMATION_EPSILON = 0.0001f;\r
- Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");\r
+ await Task.Delay(100);
+
+ //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;
+ const float ANIMATION_EPSILON = 0.0001f;
+ Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");
}