Class
GraphicIndicator

Base class for needle, marker, bar, and state indicators.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class GraphicIndicator : Control

Inheritance: objectGraphicIndicator

Derived Classes: InteractiveIndicatorNumericIndicatorStateIndicator

Constructors

GraphicIndicator()

Declaration

cs-api-definition
public GraphicIndicator()

Fields

OffPositionProperty

Identifies the OffPosition dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty OffPositionProperty

Field Value

DependencyProperty

RefreshModeProperty

Identifies the RefreshMode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RefreshModeProperty

Field Value

DependencyProperty

RefreshRateProperty

Identifies the RefreshRate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty RefreshRateProperty

Field Value

DependencyProperty

SnapIntervalProperty

Identifies the SnapInterval dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SnapIntervalProperty

Field Value

DependencyProperty

SnapTypeProperty

Identifies the SnapType dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SnapTypeProperty

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

UseRangeColorProperty

Identifies the UseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty UseRangeColorProperty

Field Value

DependencyProperty

ValueChangedEvent

Identifies the ValueChanged routed event.

Declaration

cs-api-definition
public static readonly RoutedEvent ValueChangedEvent

Field Value

RoutedEvent

ValueProperty

Identifies the Value dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueProperty

Field Value

DependencyProperty

ValueSourceProperty

Identifies the ValueSource dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ValueSourceProperty

Field Value

DependencyProperty

Properties

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 IndicatorData Data { get; }

Property Value

IndicatorData

InternalAnimationStarted

Gets or sets value which indicates whether internal animation is started for this indicator.

Declaration

cs-api-definition
public bool InternalAnimationStarted { get; set; }

Property Value

bool

OffPosition

Gets or sets “OFF” position of the indicator. This is location where indicator will be parked to when its value is double.NaN.

Declaration

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

Property Value

double

PlaybackFrame

Gets index of the current playback frame.

Declaration

cs-api-definition
public int PlaybackFrame { get; }

Property Value

int

RefreshMode

Gets or sets refresh mode of the indicator.

Declaration

cs-api-definition
public IndicatorRefreshMode RefreshMode { get; set; }

Property Value

IndicatorRefreshMode

RefreshRate

Gets or sets refresh rate of the indicator.

Declaration

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

Property Value

TimeSpan

RefreshTimer

This property serve internal needs of the RadGauge control.

Declaration

cs-api-definition
public IndicatorRefreshTimer RefreshTimer { get; set; }

Property Value

IndicatorRefreshTimer

Remarks

Gets or sets refresh timer for indicator refresh rate feature.

SnapInterval

Gets or sets snap interval for the indicator.

Declaration

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

Property Value

double

SnapType

Gets or sets snap type for the indicator.

Declaration

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

Property Value

SnapType

ToolTipStyle

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

Declaration

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

Property Value

Style

ToolTipTemplate

Gets or sets template of the indicator's tooltip.

Declaration

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

Property Value

DataTemplate

TooltipFormat

Gets or sets format of the indicator's 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.

UseRangeColor

Gets or sets value which indicates whether the indicator will use range color as its background.

Declaration

cs-api-definition
public bool UseRangeColor { get; set; }

Property Value

bool

Value

Gets or sets value of the indicator.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
public double Value { get; set; }

Property Value

double

ValueMappings

Gets the value mappings that constitute the data mappings for a indicator.

Declaration

cs-api-definition
public IndicatorValueMappingCollection ValueMappings { get; }

Property Value

IndicatorValueMappingCollection

ValueSource

Gets or sets value source for the playback feature.

Declaration

cs-api-definition
public IEnumerable ValueSource { get; set; }

Property Value

IEnumerable

Methods

MoveNext()

Move to the next value in the value source.

Declaration

cs-api-definition
public bool MoveNext()

Returns

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

MovePrevious()

Move to the previous value in the value source.

Declaration

cs-api-definition
public bool MovePrevious()

Returns

bool

true if the enumerator was successfully advanced to the previous element; false if the enumerator has passed the begin of the collection.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate.

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnValueChanged(double, double)

Called when indicator's value is changed.

Declaration

cs-api-definition
protected virtual void OnValueChanged(double oldValue, double newValue)

Parameters

oldValue

double

Old value.

newValue

double

New value.

Reset()

Move before the first value in the value source.

Declaration

cs-api-definition
public void Reset()

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public virtual void ResetTheme()

StartPlayback()

Playback content of the History or ValueSource.

Declaration

cs-api-definition
public void StartPlayback()

StartPlayback(PropertyChangedEventHandler)

Playback content of the History or ValueSource.

Declaration

cs-api-definition
public void StartPlayback(PropertyChangedEventHandler frameChanged)

Parameters

frameChanged

PropertyChangedEventHandler

Event handler for "FrameChanged" event on playback worker.

StopPlayback()

Stop playback content of the History or ValueSource.

Declaration

cs-api-definition
public void StopPlayback()

Events

ValueChanged

Occurs when the indicator's value is changed.

Declaration

cs-api-definition
public event RoutedPropertyChangedEventHandler<double> ValueChanged

Event Value

RoutedPropertyChangedEventHandler<double>