Xamarin.iOS Documentation | 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. Whereas the LoadAnimation and UpdateAnimation properties allow you to select the easing, duration and other attributes of the animation.

    The following code example demonstrates how to set this property. This example uses the sample created in the LinearGauge Quick Start section.

    In Code

    C#
    Copy Code
    linearGauge.IsAnimated = true;
    linearGauge.LoadAnimation.Duration = new TimeSpan(0, 2, 0);
    linearGauge.UpdateAnimation.Duration = new TimeSpan(0, 2, 0);