New to Telerik UI for WPFStart a free 30-day trial

Represents data object for scale tick. This class supports the RadGauge infrastructure and is not intended to be used directly from your code.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class TickMark : DependencyObject, INotifyPropertyChanged

Inheritance: objectTickMark

Implements: INotifyPropertyChanged

Constructors

C#
public TickMark()

Fields

BackgroundProperty

DependencyProperty

Identifies the Background dependency property.

C#
public static readonly DependencyProperty BackgroundProperty

StrokeProperty

DependencyProperty

Identifies the Stroke dependency property.

C#
public static readonly DependencyProperty StrokeProperty

StrokeThicknessProperty

DependencyProperty

Identifies the StrokeThickness dependency property.

C#
public static readonly DependencyProperty StrokeThicknessProperty

UseRangeColorProperty

DependencyProperty

Identifies the UseRangeColor dependency property.

C#
public static readonly DependencyProperty UseRangeColorProperty

Properties

Gets or sets tick background.

C#
public Brush Background { get; set; }

Data

DependencyObject

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

C#
public DependencyObject Data { get; }

Stroke

Brush

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

C#
public Brush Stroke { get; set; }

Gets or sets stroke thickness.

C#
public double StrokeThickness { get; set; }

Gets value from object using format string.

C#
public object this[string formatString] { get; }
Parameters:formatStringstring

Format string.

Property Value:

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.

Gets or sets tick type.

C#
public TickType Type { get; set; }

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

C#
public bool UseRangeColor { get; set; }

Methods

Raise property changed event for "Data" property.

C#
public void RaiseDataPropertyChanged()

Events

Occurs when property changed. Implemented for binding.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged