In This Article

LinearTickMarkBase Class

Represents the base class for linear tick marks.

public abstract class LinearTickMarkBase : LinearTickBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement TickBase LinearTickBase object
Derived:
LinearTickMarkCustom LinearTickMarkMajor LinearTickMarkMinor
Implements:
ILogicalParent IVisualParent

Remarks

For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.

Constructors

LinearTickMarkBase()

Initializes an instance of the class.

protected LinearTickMarkBase()

Properties

Background

Gets or sets the background brush. This is a dependency property.

public Brush Background { get; set; }

Property Value

Brush:

The background brush. The default value is WhiteSmoke.

Geometry

Gets or sets the custom geometry. This is a dependency property.

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 TickMarkType.CustomGeometry.

ImageSource

Gets or sets the source of a custom image. This is a dependency property.

public ImageSource ImageSource { get; set; }

Property Value

ImageSource:

The image source. The default value is null.

TickMarkAscent

Gets or sets the ascent of the tick mark. This is a dependency property.

public Unit TickMarkAscent { get; set; }

Property Value

Unit:

The ascent of the tick mark. The default value is 1 pixel.

TickMarkExtent

Gets or sets the extent of the tick mark. This is a dependency property.

public Unit TickMarkExtent { get; set; }

Property Value

Unit:

The extent of the tick mark. The default value is 6 pixels.

TickMarkType

Gets or sets the type of tick mark. This is a dependency property.

public TickMarkType TickMarkType { get; set; }

Property Value

TickMarkType:

The type of tick mark. The default value is TickMarkType.Rectangle.

Methods

GetValues()

Gets the values to be rendered by this tick mark element.

protected abstract DoubleCollection GetValues()

Returns

DoubleCollection:

Zero or more values to be rendered by this tick mark element.

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

Identifies the Background dependency property. This field is read-only.

public static readonly DependencyProperty BackgroundProperty

GeometryProperty

Identifies the Geometry dependency property. This field is read-only.

public static readonly DependencyProperty GeometryProperty

ImageSourceProperty

Identifies the ImageSource dependency property. This field is read-only.

public static readonly DependencyProperty ImageSourceProperty

TickMarkAscentProperty

Identifies the TickMarkAscent dependency property. This field is read-only.

public static readonly DependencyProperty TickMarkAscentProperty

TickMarkExtentProperty

Identifies the TickMarkExtent dependency property. This field is read-only.

public static readonly DependencyProperty TickMarkExtentProperty

TickMarkTypeProperty

Identifies the TickMarkType dependency property. This field is read-only.

public static readonly DependencyProperty TickMarkTypeProperty

Inherited Members