public AnimatedFloat(AnimateOperation o) { operation = o; step_timer = new StepStopwatch(Duration.Seconds(0.050f)).Chain(z => z.Start()); is_animating = true; sleep_timer = new Timer(Duration.Seconds(0.5f)); }
static public AutoAnimatedFloat CreateAutoAnimatedFloat(this View item, AnimateOperation animate_operation) { AutoAnimatedFloat auto_animated_float = new AutoAnimatedFloat <PeriodicProcess_Android>(animate_operation); auto_animated_float.OnAnimate += delegate() { item.Invalidate(); }; return(auto_animated_float); }
public AutoAnimatedFloat(AnimateOperation o) : this(new AnimatedFloat(o)) { }