In This Article

CircularTickMarkBase Class

Represents the base class for circular tick marks.

public abstract class CircularTickMarkBase : CircularTickBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement TickBase CircularTickBase object
Derived:
CircularTickMarkCustom CircularTickMarkMajor CircularTickMarkMinor
Implements:
ILogicalParent IVisualParent

Constructors

CircularTickMarkBase()

Initializes an instance of the class.

protected CircularTickMarkBase()

Properties

Background

The background brush. The default value is WhiteSmoke.

public Brush? Background { get; set; }

Property Value

Brush

Geometry

The custom geometry.

public Geometry? Geometry { get; set; }

Property Value

Geometry:

A custom geometry. The default value is null.

Remarks

This property is only used when TickMarkType is set to CustomGeometry.

ImageSource

The source of a custom image.

public ImageSource? ImageSource { get; set; }

Property Value

ImageSource:

The image source. The default value is null.

TickMarkAscent

The ascent of the tick mark.

public Unit TickMarkAscent { get; set; }

Property Value

Unit:

The default value is 1 pixel.

TickMarkExtent

The extent of the tick mark.

public Unit TickMarkExtent { get; set; }

Property Value

Unit:

The default value is 6 pixels.

TickMarkType

The type of tick mark.

public TickMarkType TickMarkType { get; set; }

Property Value

TickMarkType:

The default value is Rectangle.

Methods

GetValues()

Returns the values to be rendered by this tick mark 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

BackgroundProperty

Defines the Background property.

public static readonly DependencyProperty BackgroundProperty

GeometryProperty

Defines the Geometry property.

public static readonly DependencyProperty GeometryProperty

ImageSourceProperty

Defines the ImageSource property.

public static readonly DependencyProperty ImageSourceProperty

TickMarkAscentProperty

Defines the TickMarkAscent property.

public static readonly DependencyProperty TickMarkAscentProperty

TickMarkExtentProperty

Defines the TickMarkExtent property.

public static readonly DependencyProperty TickMarkExtentProperty

TickMarkTypeProperty

Defines the TickMarkType property.

public static readonly DependencyProperty TickMarkTypeProperty

Inherited Members

Extension Methods