Character Display Types in .NET MAUI Digital Gauge (SfDigitalGauge)
21 Jan 20252 minutes to read
The digital gauge displays numbers, the alphabet, and special characters, which are given in the text property.
Setting value to Display number Character
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";
Setting value to Display alphabets
Alphabet 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;
Setting value to 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;