Settings in UWP Digital Gauge (SfDigitalGauge)

There are some other elements/behavior in SfDigitalGauge also can be customized.

They are:

  • Character Spacing
  • Segment Thickness
  • RTL (Right to Left) support
  • Character Stroke
  • Dimmed Brush stroke
  • Dimmed Brush opacity

Character Spacing

The distance between the characters can be set by using the CharacterSpacing property.

<syncfusion:SfDigitalGauge  Value="SYNCFUSION" CharacterSpacing="50"/>
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.CharacterSpacing = 50;
    this.Grid.Children.Add(digital);

Settings_img1

Character Stroke

The Stroke of the character can be changed by CharacterStroke property.

<syncfusion:SfDigitalGauge  Value="SYNCFUSION"   CharacterType="SegmentFourteen" CharacterStroke="Yellow" />
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.CharacterStroke = new SolidColorBrush(Colors.Yellow);
    digital.CharacterType = CharacterType.SegmentFourteen;
    this.Grid.Children.Add(digital);

Settings_img2

Segment Thickness

Using SegmentThickness property, you can adjust the thickness of the segment.

<syncfusion:SfDigitalGauge  Value="SYNCFUSION"  CharacterType="SegmentFourteen”  SegmentThickness="5"/>
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.SegmentThickness = 5;
    digital.CharacterType = CharacterType.SegmentFourteen;
    this.Grid.Children.Add(digital);

Settings_img3

RTL (Right to Left) support

The Characters are aligned using EnableRTLFormat property. The default value of EnableRTLFormat is false.

<syncfusion:SfDigitalGauge  Value="SYNCFUSION"  CharacterType="SegmentFourteen"   EnableRTLFormat="True" />
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.EnableRTLFormat= true;
    digital.CharacterType = CharacterType.SegmentFourteen;
    this.Grid.Children.Add(digital);

Settings_img4

Dimmed Brush stroke

DimmedBrush property is used to apply brushes to the dimmed segment. This property is used to suit the background of the Digital gauge

<syncfusion:SfDigitalGauge  Value="SYNCFUSION" CharacterType="SegmentFourteen"  DimmedBrush="White" />
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.DimmedBrush = new SolidColorBrush(Colors.White);
    digital.CharacterType = CharacterType.SegmentFourteen;
    this.Grid.Children.Add(digital);

Settings_img5

Dimmed Brush opacity

DimmedBrushOpacity property is used to set the opacity of the brushes to the dimmed segment.

<syncfusion:SfDigitalGauge  Value="SYNCFUSION" DimmedBrush="White"  DimmedBrushOpacity="20" CharacterType="SegmentFourteen" />
SfDigitalGauge digital = new SfDigitalGauge();
    digital.Value = " SYNCFUSION";
    digital.DimmedBrush = new SolidColorBrush(Colors.White);
    digital.CharacterType = CharacterType.SegmentFourteen;
    digital.DimmedBrushOpacity = 20;
    this.Grid.Children.Add(digital);

Settings_img6