WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RollingGauge

    Show / Hide Table of Contents

    Class RollingGauge

    Represents the RollingGauge UI element.

    Inheritance
    System.Object
    GaugeBase
    RollingGauge
    Implements
    System.IDisposable
    Inherited Members
    GaugeBase.StateIndicatorStyleProperty
    GaugeBase.ApplyFrameStylesProperty
    GaugeBase.CenterFrameFillColorProperty
    GaugeBase.FirstFrameFillColorProperty
    GaugeBase.FirstFrameStyleProperty
    GaugeBase.FirstFrameThicknessProperty
    GaugeBase.InnerFrameContentProperty
    GaugeBase.InnerFrameStyleProperty
    GaugeBase.SecondFrameFillColorProperty
    GaugeBase.SecondFrameStyleProperty
    GaugeBase.SecondFrameThicknessProperty
    GaugeBase.SizeToContainerProperty
    GaugeBase.IsColorMergeWithBaseProperty
    GaugeBase.EnableEffectsProperty
    GaugeBase.ArrangeOverride(Size)
    GaugeBase.OnRenderSizeChanged(SizeChangedInfo)
    GaugeBase.OnMouseWheel(MouseWheelEventArgs)
    GaugeBase.OnRender(DrawingContext)
    GaugeBase.ChildLocationChanged(DependencyObject, DependencyPropertyChangedEventArgs)
    GaugeBase.CollectionChanged(Object, NotifyCollectionChangedEventArgs)
    GaugeBase.RefreshAdornerLayer()
    GaugeBase.RefreshBorders()
    GaugeBase.ConvertLocation(Point, Double, Double)
    GaugeBase.ConvertLocation(Point)
    GaugeBase.GaugeBaseLoaded(Object, RoutedEventArgs)
    GaugeBase.OnAdornerStyleChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.OnApplyFrameStylesChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.OnFirstFrameThicknessChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.OnSecondFrameThicknessChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.OnInnerFrameContentChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.UpdateChildrenLocation()
    GaugeBase.OnIsColorMergeWithBaseChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.OnEnableEffectsChanged(DependencyPropertyChangedEventArgs)
    GaugeBase.GaugeAdorner
    GaugeBase.CustomLabels
    GaugeBase.Images
    GaugeBase.StateIndicators
    GaugeBase.StateIndicatorStyle
    GaugeBase.ApplyFrameStyles
    GaugeBase.CenterFrameFillColor
    GaugeBase.FirstFrameFillColor
    GaugeBase.FirstFrameStyle
    GaugeBase.FirstFrameThickness
    GaugeBase.InnerFrameContent
    GaugeBase.InnerFrameStyle
    GaugeBase.SecondFrameFillColor
    GaugeBase.SecondFrameStyle
    GaugeBase.SecondFrameThickness
    GaugeBase.SizeToContainer
    GaugeBase.IsColorMergeWithBase
    GaugeBase.EnableEffects
    GaugeBase.AdornerStyleChanged
    GaugeBase.ApplyFrameStylesChanged
    GaugeBase.FirstFrameThicknessChanged
    GaugeBase.SecondFrameThicknessChanged
    GaugeBase.IsColorMergeWithBaseChanged
    GaugeBase.EnableEffectsChanged
    Namespace: Syncfusion.Windows.Gauge
    Assembly: Syncfusion.Gauge.WPF.dll
    Syntax
    [SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/MetroStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Default, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/DefaultStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(CircularGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/VS2010Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/Office2003Style.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/Office2007BlueStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/Office2007SilverStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/Office2007BlackStyle.xaml")]
    [SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(RollingGauge), XamlResource = "/Syncfusion.Gauge.WPF;component/Themes/BlendStyle.xaml")]
    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 Description
    System.Windows.DependencyProperty

    CornerRadiusProperty

    Identifies the CornerRadius dependency property.

    Declaration
    public static readonly DependencyProperty CornerRadiusProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    DirectionProperty

    Identifies the Direction dependency property.

    Declaration
    public static readonly DependencyProperty DirectionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsAutomaticSegmentCountEnabledProperty

    Identifies the IsAutomaticSegmentCountEnabled dependency property.

    Declaration
    public static readonly DependencyProperty IsAutomaticSegmentCountEnabledProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    IsNumericProperty

    Identifies the IsNumeric dependency property.

    Declaration
    public static readonly DependencyProperty IsNumericProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    MaxValueProperty

    Identifies the MaxValue dependency property.

    Declaration
    public static readonly DependencyProperty MaxValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    MinValueProperty

    Identifies the MinValue dependency property.

    Declaration
    public static readonly DependencyProperty MinValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentBackgroundProperty

    Identifies the SegmentBackground dependency property.

    Declaration
    public static readonly DependencyProperty SegmentBackgroundProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentBorderBrushProperty

    Identifies the SegmentBorderBrush dependency property.

    Declaration
    public static readonly DependencyProperty SegmentBorderBrushProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentBorderThicknessProperty

    Identifies the SegmentBorderThickness dependency property.

    Declaration
    public static readonly DependencyProperty SegmentBorderThicknessProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentCornerRadiusProperty

    Identifies the SegmentCornerRadius dependency property.

    Declaration
    public static readonly DependencyProperty SegmentCornerRadiusProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentCountProperty

    Identifies the SegmentCount dependency property.

    Declaration
    public static readonly DependencyProperty SegmentCountProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentFontSizeProperty

    Identifies the SegmentBackground dependency property.

    Declaration
    public static readonly DependencyProperty SegmentFontSizeProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentForegroundProperty

    Identifies the SegmentForeground dependency property.

    Declaration
    public static readonly DependencyProperty SegmentForegroundProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentHorizontalAlignmentProperty

    Identifies the SegmentHorizontalAlignment dependency property.

    Declaration
    public static readonly DependencyProperty SegmentHorizontalAlignmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentTemplateProperty

    Identifies the SegmentTemplate dependency property.

    Declaration
    public static readonly DependencyProperty SegmentTemplateProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SegmentVerticalAlignmentProperty

    Identifies the SegmentVerticalAlignment dependency property.

    Declaration
    public static readonly DependencyProperty SegmentVerticalAlignmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    SpaceBetWeenSegmentProperty

    Identifies the SpaceBetWeenSegment dependency property.

    Declaration
    public static readonly DependencyProperty SpaceBetWeenSegmentProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    UnitPositionProperty

    Identifies the UnitPosition dependency property.

    Declaration
    public static readonly DependencyProperty UnitPositionProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    UnitProperty

    Identifies the Unit dependency property.

    Declaration
    public static readonly DependencyProperty UnitProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    ValueProperty

    Identifies the Value dependency property.

    Declaration
    public static readonly DependencyProperty ValueProperty
    Field Value
    Type Description
    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 Description
    System.Boolean

    IsNumeric

    Gets or sets IsNumeric

    Declaration
    public bool IsNumeric { get; set; }
    Property Value
    Type Description
    System.Boolean

    MaxValue

    Gets or sets MaxValue.

    Declaration
    public double MaxValue { get; set; }
    Property Value
    Type Description
    System.Double

    MinValue

    Gets or sets MinValue.

    Declaration
    public double MinValue { get; set; }
    Property Value
    Type Description
    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 Description
    System.Windows.Media.Brush

    SegmentBorderThickness

    Gets or sets SegmentBorderThickness

    Declaration
    public Thickness SegmentBorderThickness { get; set; }
    Property Value
    Type Description
    System.Windows.Thickness

    SegmentCornerRadius

    Gets or sets SegmentCornerRadius

    Declaration
    public CornerRadius SegmentCornerRadius { get; set; }
    Property Value
    Type Description
    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 Description
    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
    GaugeBase.OnApplyTemplate()

    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
    GaugeBase.OnInitialized(EventArgs)

    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 Description
    System.Windows.PropertyChangedCallback

    SegmentCountChanged

    Event that is raised when SegmentCount property is changed.

    Declaration
    public event PropertyChangedCallback SegmentCountChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SegmentHorizontalAlignmentChanged

    Event that is raised when SegmentCount property is changed.

    Declaration
    public event PropertyChangedCallback SegmentHorizontalAlignmentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SegmentTemplateChanged

    Event that is raised when SegmentTemplate property is changed.

    Declaration
    public event PropertyChangedCallback SegmentTemplateChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    SegmentVerticalAlignmentChanged

    Event that is raised when SegmentCount property is changed.

    Declaration
    public event PropertyChangedCallback SegmentVerticalAlignmentChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    UnitChanged

    Event that is raised when Unit property is changed.

    Declaration
    public event PropertyChangedCallback UnitChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    UnitPositionChanged

    Event that is raised when UnitPosition property is changed.

    Declaration
    public event PropertyChangedCallback UnitPositionChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    ValueChanged

    Event that is raised when Value property is changed.

    Declaration
    public event PropertyChangedCallback ValueChanged
    Event Type
    Type Description
    System.Windows.PropertyChangedCallback

    Implements

    System.IDisposable

    See Also

    LinearGauge
    DigitalGauge
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved