Tritium UI
TritiumLinearGauge
Show a value on a horizontal or vertical bar with ticks, ranges, and a needle.
Key features
- Bind minimum, maximum, and a two-way value.
- Lay the scale out horizontally or vertically.
- Color quantitative bands and add marker pointers.
- Show ticks, labels, a title, and a bar color.
- Drag the needle, snap to a step, and animate changes.
- Lock interaction with IsReadOnly.
- Export the gauge 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 current reading, two-way.
- Orientation . Horizontal or vertical.
- Ranges . Colored bands along the bar.
- ValueChanged . Fires with the previous and new values.
Basic example
Declare this namespace on the page.
xmlns:gauges="clr-namespace:Tritium.Maui.Gauges;assembly=Tritium.Maui.Gauges"
<gauges:TritiumLinearGauge Minimum="0" Maximum="100" Value="40"
Orientation="Horizontal" ShowNeedle="True" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.