Tritium UI
TritiumDigitalGauge
Show a number as a seven-segment readout, including a clock-style colon.
Key features
- Bind minimum, maximum, and a two-way value.
- Choose how many digits and decimal places to show.
- Pad with leading zeros, and append a unit.
- Blink a colon for a clock-style display.
- Recolor the digits from ranges, with a separate alarm color.
- Set the panel and digit colors, plus a title.
- Export the readout to a PNG stream or file.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI).
Main API
- Value . The number shown on the segments, two-way.
- DigitCount . How many digits to draw.
- DecimalPlaces . Digits after the decimal point.
- BlinkColon . Animates a colon between digit groups.
Basic example
Declare this namespace on the page.
xmlns:gauges="clr-namespace:Tritium.Maui.Gauges;assembly=Tritium.Maui.Gauges"
<gauges:TritiumDigitalGauge Value="12.5" DigitCount="4" DecimalPlaces="1"
Unit="kW" Title="Output" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.