For the complete documentation index, see llms.txt. This page is also available as Markdown.

Odometer

The Odometer extension enables animated numbers, displaying animated rolling-digit transitions, similar to physical odometers.

Features

  • Displays a numeric Value and animates changes automatically when the value updates.

  • Configurable animation speed through Duration in milliseconds.

  • Multiple built-in visual skins: Default, Car, Digital, Minimal, Plaza, SlotMachine, and TrainStation.

Code Example

Odometer odometer1 = new Odometer();
odometer1.Skin = OdometerSkin.Digital;
odometer1.Value = 100;
odometer1.Duration = 1000;
this.Controls.Add(odometer1);

This code example creates an Odometer with the Digtal Skin- so it has green letters with a black background. The Value is set to 100, so that is the number that is displayed. Duration is set to 1000, so the animation whenever the Value changes will take 1000 milliseconds, or 1 second. The odometer created by this code looks like this:

The animation is triggered whenever the Value property of the Odometer changes. You could, for example, trigger the value change whenever a button is clicked:

Source Code

How To Use

The Odometer extension can be added to a Wisej.NET project using NuGet Package Manager.

Last updated

Was this helpful?