/// <include file="../../docs/Microsoft.Maui.Controls/Animation.xml" path="//Member[@MemberName='.ctor']/Docs" /> public Animation(Action <double> callback, double start = 0.0f, double end = 1.0f, Easing easing = null, Action finished = null) : base(callback, start, end - start, easing, finished) { Easing = easing ?? Easing.Linear; Func <double, double> transform = AnimationExtensions.Interpolate(start, end); Step = f => callback(transform(f)); }
public Animation(Action <double> callback, double start = 0.0f, double end = 1.0f, Easing easing = null, Action finished = null) { _children = new List <Animation>(); _easing = easing ?? Easing.Linear; _finished = finished; Func <double, double> transform = AnimationExtensions.Interpolate(start, end); _step = f => callback(transform(f)); }