Class DigitalGauge
Represents the DigitalGauge UI element.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Gauge
Assembly: Syncfusion.Gauge.WPF.dll
Syntax
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
[SkinType]
public class DigitalGauge : GaugeBase, IDisposable
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.
Constructors
DigitalGauge()
Initializes a new instance of the DigitalGauge class.
Declaration
public DigitalGauge()
Fields
CharacterCountProperty
Identifies the CharacterCount dependency property.
Declaration
public static readonly DependencyProperty CharacterCountProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CharacterHeightProperty
Identifies the CharacterHeight dependency property.
Declaration
public static readonly DependencyProperty CharacterHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CharacterSpacingProperty
Identifies the CharacterSpacing dependency property.
Declaration
public static readonly DependencyProperty CharacterSpacingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CharacterTypeProperty
Identifies the CharacterType dependency property.
Declaration
public static readonly DependencyProperty CharacterTypeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DimmedBrushProperty
Identifies the DimmedBrush dependency property.
Declaration
public static readonly DependencyProperty DimmedBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FrameTypeProperty
Identifies the FrameType dependency property.
Declaration
public static readonly DependencyProperty FrameTypeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentSpacingProperty
Identifies the SegmentSpacing dependency property.
Declaration
public static readonly DependencyProperty SegmentSpacingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentWidthProperty
Identifies the SegmentWidth dependency property.
Declaration
public static readonly DependencyProperty SegmentWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SkewAngleXProperty
Identifies the SkewAngleX dependency property.
Declaration
public static readonly DependencyProperty SkewAngleXProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SkewAngleYProperty
Identifies the SkewAngleY dependency property.
Declaration
public static readonly DependencyProperty SkewAngleYProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
CharacterCount
Gets or sets the count of characters. This is a dependency property.
Declaration
public int CharacterCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Type: System.Int32 Default value is 2. |
CharacterHeight
Gets or sets the height of characters. This is a dependency property.
Declaration
public double CharacterHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 30. |
CharacterSpacing
Gets or sets the distance between characters. This is a dependency property.
Declaration
public double CharacterSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 2. |
CharacterType
Gets or sets the value indicating whether character should contain seven or fourteen segments. This is a dependency property.
Declaration
public CharacterType CharacterType { get; set; }
Property Value
Type | Description |
---|---|
CharacterType | Type: CharacterType Default value is CharacterType.SegmentSeven. |
DimmedBrush
Gets or sets the brush used for drawing of dim segments. This is a dependency property.
Declaration
public Brush DimmedBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush |
FrameType
Gets or sets the frame style of Digital Gauge. This is a dependency property.
Declaration
public DigitalGaugeFrameType FrameType { get; set; }
Property Value
Type | Description |
---|---|
DigitalGaugeFrameType | Type: DigitalGaugeFrameType |
SegmentSpacing
Gets or sets the distance between character segments. This is a dependency property.
Declaration
public double SegmentSpacing { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0.5. |
SegmentWidth
Gets or sets the width of character segments. This is a dependency property.
Declaration
public double SegmentWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 2. |
SkewAngleX
Gets or sets the angle to skew the characters along the x-axis. This is a dependency property.
Declaration
public double SkewAngleX { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
SkewAngleY
Gets or sets the angle to skew the characters along the y-axis. This is a dependency property.
Declaration
public double SkewAngleY { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double Default value is 0. |
Value
Gets or sets the value that digital gauge should display. This is a dependency property.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | Type: System.Object |
Methods
Dispose()
Declaration
public void Dispose()
OnApplyTemplate()
Builds the current template's visual tree.
Declaration
public override void OnApplyTemplate()
Overrides
OnCharacterCountChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CharacterCountChanged event.
Declaration
protected virtual void OnCharacterCountChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnCharacterHeightChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CharacterHeightChanged event.
Declaration
protected virtual void OnCharacterHeightChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnCharacterSpacingChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CharacterSpacingChanged event.
Declaration
protected virtual void OnCharacterSpacingChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnCharacterTypeChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises CharacterTypeChanged event.
Declaration
protected virtual void OnCharacterTypeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnDimmedBrushChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises DimmedBrushChanged event.
Declaration
protected virtual void OnDimmedBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnForegroundChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ForegroundChanged event.
Declaration
protected virtual void OnForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnFrameTypeChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises FrameTypeChanged event.
Declaration
protected virtual void OnFrameTypeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized property is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs that contains the event data. |
Overrides
OnSegmentSpacingChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SegmentSpacingChanged event.
Declaration
protected virtual void OnSegmentSpacingChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSegmentWidthChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SegmentWidthChanged event.
Declaration
protected virtual void OnSegmentWidthChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSkewAngleXChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SkewAngleXChanged event.
Declaration
protected virtual void OnSkewAngleXChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnSkewAngleYChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises SkewAngleYChanged event.
Declaration
protected virtual void OnSkewAngleYChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnValueChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises ValueChanged event.
Declaration
protected virtual void OnValueChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
RefreshAdornerLayer()
Refreshes the Adorner layer.
Declaration
protected override void RefreshAdornerLayer()
Overrides
Events
CharacterCountChanged
Event that is raised when CharacterCount property is changed.
Declaration
public event PropertyChangedCallback CharacterCountChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CharacterHeightChanged
Event that is raised when CharacterHeight property is changed.
Declaration
public event PropertyChangedCallback CharacterHeightChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CharacterSpacingChanged
Event that is raised when CharacterSpacing property is changed.
Declaration
public event PropertyChangedCallback CharacterSpacingChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CharacterTypeChanged
Event that is raised when CharacterType property is changed.
Declaration
public event PropertyChangedCallback CharacterTypeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DimmedBrushChanged
Event that is raised when DimmedBrush property is changed.
Declaration
public event PropertyChangedCallback DimmedBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
FrameTypeChanged
Event that is raised when FrameType property is changed.
Declaration
public event PropertyChangedCallback FrameTypeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentSpacingChanged
Event that is raised when SegmentSpacing property is changed.
Declaration
public event PropertyChangedCallback SegmentSpacingChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentWidthChanged
Event that is raised when SegmentWidth property is changed.
Declaration
public event PropertyChangedCallback SegmentWidthChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SkewAngleXChanged
Event that is raised when SkewAngleX property is changed.
Declaration
public event PropertyChangedCallback SkewAngleXChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SkewAngleYChanged
Event that is raised when SkewAngleY property is changed.
Declaration
public event PropertyChangedCallback SkewAngleYChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ValueChanged
Event that is raised when Value property is changed.
Declaration
public event PropertyChangedCallback ValueChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |