Xuni User Guide > Xuni Controls > Gauge > Features > Animation |
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 in C#. These example uses the sample created in the LinearGauge Quick Start section.
C# |
Copy Code |
---|---|
gauge.IsAnimated = true;
gauge.LoadAnimation.Easing = Easing.CubicInOut;
gauge.LoadAnimation.Duration=2000;
gauge.UpdateAnimation.Easing = Easing.BounceOut;
gauge.UpdateAnimation.Duration = 2000; |