Class
TickMark

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:

cs-api-definition
public class TickMark : DependencyObject, INotifyPropertyChanged

Inheritance: objectTickMark

Implements: INotifyPropertyChanged

Constructors

TickMark()

Declaration

cs-api-definition
public TickMark()

Fields

BackgroundProperty

Identifies the Background dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty BackgroundProperty

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

UseRangeColorProperty

Identifies the UseRangeColor dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty UseRangeColorProperty

Field Value

DependencyProperty

Properties

Background

Gets or sets tick background.

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

Stroke

Gets or sets the Brush that specifies how the tick 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

Type

Gets or sets tick type.

Declaration

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

Property Value

TickType

UseRangeColor

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

Declaration

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

Property Value

bool

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

RaiseDataPropertyChanged()

Raise property changed event for "Data" property.

Declaration

cs-api-definition
public void RaiseDataPropertyChanged()

Events

PropertyChanged

Occurs when property changed. Implemented for binding.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged