In This Article

CircularTickLabelBase Class

Represents the base class for circular tick labels.

public abstract class CircularTickLabelBase : CircularTickBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement TickBase CircularTickBase object
Derived:
CircularTickLabelCustom CircularTickLabelMajor CircularTickLabelMinor
Implements:
ILogicalParent IVisualParent

Constructors

CircularTickLabelBase()

Initializes an instance of the class.

protected CircularTickLabelBase()

Properties

FontFamily

The font family.

public FontFamily? FontFamily { get; set; }

Property Value

FontFamily

FontSize

The font size.

public Unit FontSize { get; set; }

Property Value

Unit

FontStyle

The font style.

public FontStyle FontStyle { get; set; }

Property Value

FontStyle

FontWeight

The font weight.

public FontWeight FontWeight { get; set; }

Property Value

FontWeight

Foreground

The foreground brush.

public Brush? Foreground { get; set; }

Property Value

Brush:

The default value is WhiteSmoke.

RoundMode

Indicates how to round the values displayed.

public RoundMode RoundMode { get; set; }

Property Value

RoundMode:

The default value is Nearest.

TextFormat

The format used to convert Value to a string.

public string TextFormat { get; set; }

Property Value

string:

The default value is "{0:G}".

TextOrientation

The text orientation.

public TextOrientation TextOrientation { get; set; }

Property Value

TextOrientation:

The default value is Normal.

Methods

GetValueText(double)

Returns the string representation of the specified value, using TextFormat and RoundMode.

protected virtual string GetValueText(double value)
Parameter Type Description
value double

The value.

Returns

string

GetValues()

Returns the values to be rendered by this tick label element.

protected abstract DoubleCollection? GetValues()

Returns

DoubleCollection

OnRender(DrawingContext)

When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.

protected override void OnRender(DrawingContext drawingContext)
Parameter Type Description
drawingContext DrawingContext

The drawing instructions for a specific element. This context is provided to the layout system.

Fields

FontFamilyProperty

Defines the FontFamily property.

public static readonly DependencyProperty FontFamilyProperty

FontSizeProperty

Defines the FontSize property.

public static readonly DependencyProperty FontSizeProperty

FontStyleProperty

Defines the FontStyle property.

public static readonly DependencyProperty FontStyleProperty

FontWeightProperty

Defines the FontWeight property.

public static readonly DependencyProperty FontWeightProperty

ForegroundProperty

Defines the Foreground property.

public static readonly DependencyProperty ForegroundProperty

RoundModeProperty

Defines the RoundMode property.

public static readonly DependencyProperty RoundModeProperty

TextFormatProperty

Defines the TextFormat property.

public static readonly DependencyProperty TextFormatProperty

TextOrientationProperty

Defines the TextOrientation property.

public static readonly DependencyProperty TextOrientationProperty

Inherited Members

Extension Methods