public void SetValue(int newValue, bool now = false) { lerpValue.End = newValue; if (now) { lerpValue.Start = newValue; } lerpValue.StartAnimation(); }
public void ScrollTo(float offset, bool now = false) { lerpOffset.Start = lerpOffset.CurrentValue; Offset = MathHelper.Clamp(offset, 0, LayoutInvalid ? ScrollContentHeight : MaximumVisibleOffset); if (now) { lerpOffset.Start = Offset; lerpOffset.FinishAnimation(); InvalidateLayout(); } else { lerpOffset.StartAnimation(); } }
public void Reset() { rotationValue.StartAnimation(); fadeInAnim.StartAnimation(); }