Xamarin.Forms | ComponentOne
Controls / Gauge / Features / Animation
In This Topic
    Animation
    In This Topic

    Gauges come with in-built animations to improve their appearance. The IsAnimated property allows you to enable or disable the animation effects. The LoadAnimation and UpdateAnimation properties enable you to set the easing, duration and other animation-related attributes.

    The following code example demonstrates how to set this property in C#. These example uses the sample created in the Quick start.

    C#
    Copy Code
    gauge.IsAnimated = true;
    gauge.LoadAnimation.Easing = Easing.CubicInOut;
    gauge.UpdateAnimation.Easing = Easing.BounceOut;