WPF

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

    Show / Hide Table of Contents

    Class StateRange

    Represents state range object that helps specifying the range in which the indicator should be active.

    Inheritance
    System.Object
    StateRange
    Namespace: Syncfusion.Windows.Gauge
    Assembly: Syncfusion.Gauge.WPF.dll
    Syntax
    public class StateRange : FrameworkElement
    Remarks

    The StartValue and EndValue should be properly initialized inorder to change the state of the StateIndicator

    Constructors

    StateRange()

    Initializes a new instance of the StateRange class.

    Declaration
    public StateRange()

    StateRange(Double, Double)

    Initializes a new instance of the StateRange class.

    Declaration
    public StateRange(double startValue, double endValue)
    Parameters
    Type Name Description
    System.Double startValue

    Start range value.

    System.Double endValue

    End range value.

    StateRange(Double, Double, Brush)

    Initializes a new instance of the StateRange class.

    Declaration
    public StateRange(double startValue, double endValue, Brush rangecolor)
    Parameters
    Type Name Description
    System.Double startValue

    Start range value.

    System.Double endValue

    End range value.

    System.Windows.Media.Brush rangecolor

    Range Color value.

    Fields

    EndValueProperty

    Identifies the EndValue dependency property.

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

    RangeColorProperty

    Identifies the RangeColor dependency property.

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

    StartValueProperty

    Identifies the StartValue dependency property.

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

    Properties

    EndValue

    Gets or sets the end range value This is a dependency property.

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

    Type: System.Double Default value is 0.

    See Also
    StartValue

    RangeColor

    Gets or sets the range color value This is a dependency property.

    Declaration
    public Brush RangeColor { get; set; }
    Property Value
    Type Description
    System.Windows.Media.Brush

    Type: System.Windows.Media.Brush Default value is Red.

    See Also
    EndValue

    StartValue

    Gets or sets the start range value This is a dependency property.

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

    Type: System.Double Default value is 0.

    See Also
    EndValue

    Methods

    OnEndValueChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises EndValueChanged event.

    Declaration
    protected virtual void OnEndValueChanged(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.

    OnRangeColorChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises RangeColorChanged event.

    Declaration
    protected virtual void OnRangeColorChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    OnStartValueChanged(DependencyPropertyChangedEventArgs)

    Updates property value cache and raises StartValueChanged event.

    Declaration
    protected virtual void OnStartValueChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    Property change details, such as old value and new value.

    Events

    EndValueChanged

    Event that is raised when EndValue property is changed.

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

    RangeColorChanged

    Event that is raised when RangeColor property is changed.

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

    StartValueChanged

    Event that is raised when StartValue property is changed.

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

    See Also

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