Class RollingGauge
Represents the RollingGauge 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 RollingGauge : GaugeBase, IDisposable
Examples
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Controls;
using System.Windows.Data;
using Syncfusion.Windows.Shared;
using Syncfusion.Windows.Gauge;
namespace CharacterRollingGaugeSample
{
public partial class Window1 : Window
{
private DigitalGauge digitalGauge1;
public Window1()
{
InitializeComponent();
RollingGauge rollingGauge = new RollingGauge();
rollingGauge.SpaceBetWeenSegment = new Thickness(1);
rollingGauge.Value = "11";
rollingGauge.Unit = "KM";
rollingGauge.UnitPosition = UnitPosition.End;
this.Content = rollingGauge;
}
}
}
Constructors
RollingGauge()
Initializes a new instance of the RollingGauge class.
Declaration
public RollingGauge()
Fields
AnimationDelayProperty
Identifies the AnimationDelay dependency property.
Declaration
public static readonly DependencyProperty AnimationDelayProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CornerRadiusProperty
Identifies the CornerRadius dependency property.
Declaration
public static readonly DependencyProperty CornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DirectionProperty
Identifies the Direction dependency property.
Declaration
public static readonly DependencyProperty DirectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsAutomaticSegmentCountEnabledProperty
Identifies the IsAutomaticSegmentCountEnabled dependency property.
Declaration
public static readonly DependencyProperty IsAutomaticSegmentCountEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsNumericProperty
Identifies the IsNumeric dependency property.
Declaration
public static readonly DependencyProperty IsNumericProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MaxValueProperty
Identifies the MaxValue dependency property.
Declaration
public static readonly DependencyProperty MaxValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MinValueProperty
Identifies the MinValue dependency property.
Declaration
public static readonly DependencyProperty MinValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentBackgroundProperty
Identifies the SegmentBackground dependency property.
Declaration
public static readonly DependencyProperty SegmentBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentBorderBrushProperty
Identifies the SegmentBorderBrush dependency property.
Declaration
public static readonly DependencyProperty SegmentBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentBorderThicknessProperty
Identifies the SegmentBorderThickness dependency property.
Declaration
public static readonly DependencyProperty SegmentBorderThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentCornerRadiusProperty
Identifies the SegmentCornerRadius dependency property.
Declaration
public static readonly DependencyProperty SegmentCornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentCountProperty
Identifies the SegmentCount dependency property.
Declaration
public static readonly DependencyProperty SegmentCountProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentFontSizeProperty
Identifies the SegmentBackground dependency property.
Declaration
public static readonly DependencyProperty SegmentFontSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentForegroundProperty
Identifies the SegmentForeground dependency property.
Declaration
public static readonly DependencyProperty SegmentForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentHorizontalAlignmentProperty
Identifies the SegmentHorizontalAlignment dependency property.
Declaration
public static readonly DependencyProperty SegmentHorizontalAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentTemplateProperty
Identifies the SegmentTemplate dependency property.
Declaration
public static readonly DependencyProperty SegmentTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SegmentVerticalAlignmentProperty
Identifies the SegmentVerticalAlignment dependency property.
Declaration
public static readonly DependencyProperty SegmentVerticalAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SpaceBetWeenSegmentProperty
Identifies the SpaceBetWeenSegment dependency property.
Declaration
public static readonly DependencyProperty SpaceBetWeenSegmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnitPositionProperty
Identifies the UnitPosition dependency property.
Declaration
public static readonly DependencyProperty UnitPositionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UnitProperty
Identifies the Unit dependency property.
Declaration
public static readonly DependencyProperty UnitProperty
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
AnimationDelay
Gets or sets AnimationDelay
Declaration
public TimeSpan AnimationDelay { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan | The animation delay. |
CornerRadius
Gets or sets the gauge's corner radius . This is a dependency property.
Declaration
public CornerRadius CornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.CornerRadius | CornerRadius |
Direction
Gets or sets the Direction
Declaration
public Direction Direction { get; set; }
Property Value
Type | Description |
---|---|
Direction | Type: Direction |
IsAutomaticSegmentCountEnabled
Gets or sets IsAutomaticSegmentCountEnabled
Declaration
public bool IsAutomaticSegmentCountEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsNumeric
Gets or sets IsNumeric
Declaration
public bool IsNumeric { get; set; }
Property Value
Type |
---|
System.Boolean |
MaxValue
Gets or sets MaxValue.
Declaration
public double MaxValue { get; set; }
Property Value
Type |
---|
System.Double |
MinValue
Gets or sets MinValue.
Declaration
public double MinValue { get; set; }
Property Value
Type |
---|
System.Double |
SegmentBackground
Gets or sets the SegmentBackground
Declaration
public Brush SegmentBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush |
SegmentBorderBrush
Gets or sets SegmentBorderBrush
Declaration
public Brush SegmentBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SegmentBorderThickness
Gets or sets SegmentBorderThickness
Declaration
public Thickness SegmentBorderThickness { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
SegmentCornerRadius
Gets or sets SegmentCornerRadius
Declaration
public CornerRadius SegmentCornerRadius { get; set; }
Property Value
Type |
---|
System.Windows.CornerRadius |
SegmentCount
Gets or sets the SegmentCount
Declaration
public int SegmentCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Type: System.Int32 |
SegmentFontSize
Gets or sets the SegmentFontSize
Declaration
public double SegmentFontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | Type: System.Double |
SegmentForeground
Gets or sets the SegmentForeground
Declaration
public Brush SegmentForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush |
SegmentHorizontalAlignment
Gets or sets SegmentHorizontalAlignment
Declaration
public HorizontalAlignment SegmentHorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.HorizontalAlignment | The segment horizontal alignment. |
Segments
Gets or sets the collection of segments;
Declaration
public SegmentCollection Segments { get; set; }
Property Value
Type | Description |
---|---|
SegmentCollection | Type: SegmentCollection |
SegmentTemplate
Gets or sets the Segment Template
Declaration
public DataTemplate SegmentTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | Type: System.Windows.DataTemplate |
SegmentVerticalAlignment
Gets or sets SegmentVerticalAlignment
Declaration
public VerticalAlignment SegmentVerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.VerticalAlignment | The segment vertical alignment. |
SpaceBetWeenSegment
Gets or Sets SpaceBetWeenSegment
Declaration
public Thickness SpaceBetWeenSegment { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
Unit
Gets or sets the Unit
Declaration
public string Unit { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String |
UnitPosition
Gets or sets the Unitposition
Declaration
public UnitPosition UnitPosition { get; set; }
Property Value
Type | Description |
---|---|
UnitPosition | Type: Direction |
Value
Gets or sets the Value
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String |
Methods
Dispose()
Declaration
public void Dispose()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
Overrides
OnDirectionChanged(DependencyPropertyChangedEventArgs)
Raises the DirectionChanged event.
Declaration
protected virtual void OnDirectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnInitialized(EventArgs)
Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.Windows.RoutedEventArgs that contains the event data. |
Overrides
OnSegmentCountChanged(DependencyPropertyChangedEventArgs)
Raises the SegmentCountChanged event.
Declaration
protected virtual void OnSegmentCountChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnSegmentHorizontalAlignmentChanged(DependencyPropertyChangedEventArgs)
Raises the SegmentCountChanged event.
Declaration
protected virtual void OnSegmentHorizontalAlignmentChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnSegmentTemplateChanged(DependencyPropertyChangedEventArgs)
Raises the SegmentTemplateChanged event.
Declaration
protected virtual void OnSegmentTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnSegmentVerticalAlignmentChanged(DependencyPropertyChangedEventArgs)
Raises the SegmentCountChanged event.
Declaration
protected virtual void OnSegmentVerticalAlignmentChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnUnitChanged(DependencyPropertyChangedEventArgs)
Raises the UnitChanged event.
Declaration
protected virtual void OnUnitChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnUnitPositionChanged(DependencyPropertyChangedEventArgs)
Raises the UnitPositionChanged event.
Declaration
protected virtual void OnUnitPositionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnValueChanged(DependencyPropertyChangedEventArgs)
Raises the ValueChanged event.
Declaration
protected virtual void OnValueChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
RefreshRollingGauge()
Refresh the gauge when PropertyChanges
Declaration
public void RefreshRollingGauge()
Events
DirectionChanged
Event that is raised when Direction property is changed.
Declaration
public event PropertyChangedCallback DirectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentCountChanged
Event that is raised when SegmentCount property is changed.
Declaration
public event PropertyChangedCallback SegmentCountChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentHorizontalAlignmentChanged
Event that is raised when SegmentCount property is changed.
Declaration
public event PropertyChangedCallback SegmentHorizontalAlignmentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentTemplateChanged
Event that is raised when SegmentTemplate property is changed.
Declaration
public event PropertyChangedCallback SegmentTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SegmentVerticalAlignmentChanged
Event that is raised when SegmentCount property is changed.
Declaration
public event PropertyChangedCallback SegmentVerticalAlignmentChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
UnitChanged
Event that is raised when Unit property is changed.
Declaration
public event PropertyChangedCallback UnitChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
UnitPositionChanged
Event that is raised when UnitPosition property is changed.
Declaration
public event PropertyChangedCallback UnitPositionChanged
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 |