Syncfusion.Gauge.WPF
Members  Example 


DigitalGauge Class

Represents the DigitalGauge UI element. The digital gauge is perfect for displaying output values that uses various character symbols. A digital gauge can have multiple characters, state indicators, labels and images. The look and feel of characters can be fully customized by setting the different properties of DigitalGauge.
Help Page Syntax
XAML Object Element Usage C# public partial class DigitalGauge : Control

The following example shows how to create a DigitalGauge in XAML.

The following example shows how to create a DigitalGauge in C#. using System; using System.Windows; using System.Windows.Controls; using Syncfusion.Windows.Gauge; using System.Windows.Media; namespace GaugeControlTesting { public partial class Window1 : Window { public Window1() { InitializeComponent(); this.digitalGauge1.CharacterCount = 5; this.digitalGauge1.CharacterHeight = 50; this.digitalGauge1.CenterFrameFillColor = Colors.Gray; this.digitalGauge1.Foreground = new SolidColorBrush( Colors.Red ); this.digitalGauge1.DimmedBrush = new SolidColorBrush( Colors.Transparent ); this.digitalGauge1.SkewAngleX = -10; this.digitalGauge1.SegmentSpacing = 1; this.digitalGauge1.CharacterSpacing = 5; this.digitalGauge1.Value = "Error"; this.digitalGauge1.CharacterType = CharacterType.SegmentFourteen; } } }

Object Model
DigitalGauge ClassCustomLabelsCollection ClassCircularCustomLabel ClassGaugeAdorner ClassImagesCollection ClassGaugeImage ClassStateIndicatorsCollection ClassStateIndicator Class
Syntax
'Declaration
 
<SkinTypeAttribute(SkinVisualStyle=Skin.Metro, 
   Type=Syncfusion.Windows.Gauge.DigitalGauge, 
   XamlResource="/Syncfusion.Gauge.WPF;component/Themes/MetroStyle.xaml")>
<StyleTypedPropertyAttribute(Property="StateIndicatorStyle", StyleTargetType=Syncfusion.Windows.Gauge.StateIndicator)>
<XmlLangPropertyAttribute("Language")>
<UsableDuringInitializationAttribute(True)>
<RuntimeNamePropertyAttribute("Name")>
<UidPropertyAttribute("Uid")>
<TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
<NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
Public Class DigitalGauge 
   Inherits GaugeBase
'Usage
 
Dim instance As DigitalGauge
[SkinType(SkinVisualStyle=Skin.Metro, 
   Type=Syncfusion.Windows.Gauge.DigitalGauge, 
   XamlResource="/Syncfusion.Gauge.WPF;component/Themes/MetroStyle.xaml")]
[StyleTypedProperty(Property="StateIndicatorStyle", StyleTargetType=Syncfusion.Windows.Gauge.StateIndicator)]
[XmlLangProperty("Language")]
[UsableDuringInitialization(true)]
[RuntimeNameProperty("Name")]
[UidProperty("Uid")]
[TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
[NameScopeProperty("NameScope", System.Windows.NameScope)]
public class DigitalGauge : GaugeBase 
Remarks
The digital gauge is perfect for displaying output values that uses various character symbols. A digital gauge can have multiple characters, state indicators, labels and images. The look and feel of characters can be fully customized by setting the different properties of DigitalGauge.
Example
XAML Object Element Usage

C#
public partial class DigitalGauge : Control

The following example shows how to create a DigitalGauge in XAML.

The following example shows how to create a DigitalGauge in C#.

public partial class DigitalGauge : Control
using System;
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Gauge;
using System.Windows.Media;
namespace GaugeControlTesting
{
  public partial class Window1 : Window
  {
      public Window1()
      {
          InitializeComponent();
          this.digitalGauge1.CharacterCount = 5;
          this.digitalGauge1.CharacterHeight = 50;
          this.digitalGauge1.CenterFrameFillColor = Colors.Gray;
          this.digitalGauge1.Foreground = new SolidColorBrush( Colors.Red );
          this.digitalGauge1.DimmedBrush = new SolidColorBrush( Colors.Transparent );
          this.digitalGauge1.SkewAngleX = -10;
          this.digitalGauge1.SegmentSpacing = 1;
          this.digitalGauge1.CharacterSpacing = 5;
          this.digitalGauge1.Value = "Error";
          this.digitalGauge1.CharacterType = CharacterType.SegmentFourteen;
      }
  }
}
Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     Syncfusion.Windows.Gauge.GaugeBase
                        Syncfusion.Windows.Gauge.DigitalGauge

AssemblyVersion

Syncfusion.Gauge.WPF: 17.4460.0.46

See Also