Class
GaugeRange

Represents value range along the scale. It is data object which suppose to be data context for the visual range representation.

Definition

Constructors

GaugeRange()

Initializes a new instance of the GaugeRange class.

Declaration

cs-api-definition
public GaugeRange()

Fields

BackgroundProperty

Identifies the Background dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BackgroundProperty

Field Value

DependencyProperty

EndWidthProperty

Identifies the EndWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty EndWidthProperty

Field Value

DependencyProperty

GeometryProperty

Identifies the Geometry dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty GeometryProperty

Field Value

DependencyProperty

IndicatorBackgroundProperty

Identifies the IndicatorBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndicatorBackgroundProperty

Field Value

DependencyProperty

IndicatorColorMixSensitivityProperty

Identifies the IndicatorColorMixSensitivity dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IndicatorColorMixSensitivityProperty

Field Value

DependencyProperty

LabelForegroundProperty

Identifies the LabelForeground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelForegroundProperty

Field Value

DependencyProperty

MaxProperty

Identifies the Max dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MaxProperty

Field Value

DependencyProperty

MinProperty

Identifies the Min dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty MinProperty

Field Value

DependencyProperty

StartWidthProperty

Identifies the StartWidth dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartWidthProperty

Field Value

DependencyProperty

StrokeProperty

Identifies the Stroke dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeProperty

Field Value

DependencyProperty

StrokeThicknessProperty

Identifies the StrokeThickness dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty StrokeThicknessProperty

Field Value

DependencyProperty

TickBackgroundProperty

Identifies the TickBackground dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TickBackgroundProperty

Field Value

DependencyProperty

TimeoutProperty

Identifies the Timeout dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TimeoutProperty

Field Value

DependencyProperty

TitleProperty

Identifies the Title dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TitleProperty

Field Value

DependencyProperty

ToolTipStyleProperty

Identifies the ToolTipStyle dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipStyleProperty

Field Value

DependencyProperty

ToolTipTemplateProperty

Identifies the ToolTipTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ToolTipTemplateProperty

Field Value

DependencyProperty

TooltipFormatProperty

Identifies the TooltipFormat dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty TooltipFormatProperty

Field Value

DependencyProperty

VisibilityProperty

Identifies the Visibility dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty VisibilityProperty

Field Value

DependencyProperty

Properties

Background

Gets or sets the background of the range's visual presentation.

Declaration

cs-api-definition
public Brush Background { get; set; }

Property Value

Brush

Data

Return reference to self. This property can be used within Binding in XAML to implement binding which reflect extended property changes.

Declaration

cs-api-definition
public DependencyObject Data { get; }

Property Value

DependencyObject

EndWidth

Gets or sets the end width of the range bar.

Declaration

cs-api-definition
public double EndWidth { get; set; }

Property Value

double

Geometry

This property serve internal RadGauge operations. It shouldn't be used in the customer code.

Declaration

cs-api-definition
public Geometry Geometry { get; set; }

Property Value

Geometry

Remarks

Gets or sets range geometry.

IndicatorBackground

Gets or sets background of the indicator when it is in range.

Declaration

cs-api-definition
public Brush IndicatorBackground { get; set; }

Property Value

Brush

IndicatorColorMixSensitivity

Gets or sets value which indicates the activity of color from previous range that is used to build indicator background.

Declaration

cs-api-definition
public double IndicatorColorMixSensitivity { get; set; }

Property Value

double

LabelForeground

Gets or sets the foreground of labels are in range.

Declaration

cs-api-definition
public Brush LabelForeground { get; set; }

Property Value

Brush

Max

Gets or sets the maximum value of the range.

Declaration

cs-api-definition
public double Max { get; set; }

Property Value

double

Min

Gets or sets the minimum value of the range.

Declaration

cs-api-definition
public double Min { get; set; }

Property Value

double

StartWidth

Gets or sets the start width of the range bar.

Declaration

cs-api-definition
public double StartWidth { get; set; }

Property Value

double

Stroke

Gets or sets the Brush that specifies how the range outline is painted.

Declaration

cs-api-definition
public Brush Stroke { get; set; }

Property Value

Brush

StrokeThickness

Gets or sets stroke thickness.

Declaration

cs-api-definition
public double StrokeThickness { get; set; }

Property Value

double

TickBackground

Gets or sets background of ticks are in range.

Declaration

cs-api-definition
public Brush TickBackground { get; set; }

Property Value

Brush

Timeout

Gets or sets timeout during which value should be in range to fire "In Range Timeout" event.

Declaration

cs-api-definition
public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Title

Gets or sets title of the range which can be used in the tooltip. Can be accessed as {Binding Path=Data[Range.Title]}.

Declaration

cs-api-definition
public string Title { get; set; }

Property Value

string

ToolTipStyle

Gets or sets the style applied to the toolTip of the range.

Declaration

cs-api-definition
public Style ToolTipStyle { get; set; }

Property Value

Style

ToolTipTemplate

Gets or sets template of the range's tooltip.

Declaration

cs-api-definition
public DataTemplate ToolTipTemplate { get; set; }

Property Value

DataTemplate

TooltipFormat

Gets or sets the format of the range tooltip.

Declaration

cs-api-definition
public string TooltipFormat { get; set; }

Property Value

string

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

Visibility

Gets or sets visibility of the gauge range.

Declaration

cs-api-definition
public Visibility Visibility { get; set; }

Property Value

Visibility

this[string]

Gets value from object using format string.

Declaration

cs-api-definition
public object this[string formatString] { get; }

Parameters

formatString

string

Format string.

Property Value

object

Formatted value.

Remarks

The format string can use properties of the scale objects. For example "{Value|F2} Range: Min={Range.Min|F2} Max={Range.Max|F2}". This format string uses value of the indicator and Min and Max properties of the gauge range this indicator is pointing to. Currently you can use Range and Scale objects in the format string. The '|' character is used to separate property name and its output format.

Methods

InRange(DependencyObject)

Check whether given object is in range.

Declaration

cs-api-definition
public bool InRange(DependencyObject valueObject)

Parameters

valueObject

DependencyObject

Dependency object which have attachable ScaleObject.Value property set or indicator.

Returns

bool

true if indicator's or object's value is in range.

RaiseDataPropertyChanged()

Raise property changed event for "Data" property.

Declaration

cs-api-definition
public void RaiseDataPropertyChanged()

ValueInRange(double)

Check whether given double value is in range.

Declaration

cs-api-definition
public bool ValueInRange(double value)

Parameters

value

double

Value to test.

Returns

bool

The value is in range.

Events

PropertyChanged

Occurs when property changed. Implemented for binding.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged