Character Display Types in .NET MAUI Digital Gauge
12 Jul 20262 minutes to read
The digital gauge displays numbers, the alphabet, and special characters, which are given in the text property.
NOTE
Prerequisite: Ensure that the required NuGet package is installed, the necessary namespaces are imported, and the SfDigitalGauge control is properly configured in your application. For detailed setup and configuration instructions, refer to the Getting Started guide.
Display numbers
Numbers can be displayed in a digital gauge in different formats using the CharacterType property.
<gauge:SfDigitalGauge Text = "12 34 56"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "12 34 56";
this.Content = digital;
Display alphabets
Alphabets can be displayed in a digital gauge using any one of the character format types.
<gauge:SfDigitalGauge Text = "SYNCFUSION"
CharacterType = "SixteenSegment"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "SYNCFUSION";
digital.CharacterType = DigitalGaugeCharacterType.SixteenSegment;
this.Content = digital;
Display special characters
Special characters can also be displayed in digital gauge using the EightCrossEightDotMatrix character format type.
<gauge:SfDigitalGauge Text = "@ # $ % *"
CharacterType = "EightCrossEightDotMatrix"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "@ # $ % *";
digital.CharacterType = DigitalGaugeCharacterType.EightCrossEightDotMatrix;
this.Content = digital;