Character Types in .NET MAUI Digital Gauge
12 Jul 20263 minutes to read
The digital characters can be displayed in the following four different segments by using the CharacterType property. The default value of the CharacterType property is SevenSegment.
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.
Seven segment
The seven-segment type is capable of displaying numbers and a few uppercase letters efficiently by setting the CharacterType property to SevenSegment.
<gauge:SfDigitalGauge Text = "12345"
CharacterType = "SevenSegment"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "12345";
digital.CharacterType = DigitalGaugeCharacterType.SevenSegment;
this.Content = digital;
Fourteen segment
The fourteen-segment type is capable of displaying numbers and the alphabet efficiently by setting the CharacterType property to FourteenSegment.
<gauge:SfDigitalGauge Text = "12345"
CharacterType = "FourteenSegment"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "12345";
digital.CharacterType = DigitalGaugeCharacterType.FourteenSegment;
this.Content = digital;
Sixteen segment
The sixteen-segment type is capable of displaying numbers and the alphabet clearly by setting the CharacterType property to SixteenSegment.
<gauge:SfDigitalGauge Text = "12345"
CharacterType = "SixteenSegment"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "12345";
digital.CharacterType = DigitalGaugeCharacterType.SixteenSegment;
this.Content = digital;
EightCrossEightDotMatrix segment
The dot matrix segment type is capable of displaying numbers, the alphabet, and special characters efficiently by setting the CharacterType property to EightCrossEightDotMatrix.
<gauge:SfDigitalGauge Text = "12345"
CharacterType = "EightCrossEightDotMatrix"/>SfDigitalGauge digital = new SfDigitalGauge();
digital.Text = "12345";
digital.CharacterType = DigitalGaugeCharacterType.EightCrossEightDotMatrix;
this.Content = digital;