In This Article

LinearRange Class

Represents an element that renders a range in a LinearGauge.

public class LinearRange : RangeBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement RangeBase object
Implements:
ILogicalParent IVisualParent

Remarks

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

Constructors

LinearRange()

Initializes an instance of the class.

public LinearRange()

Properties

EndAscent

Gets or sets the ascent of the range at the EndValue. This is a dependency property.

public Unit EndAscent { get; set; }

Property Value

Unit:

The ascent of the range at the EndValue. The default value is 5 pixels.

Orientation

Gets the orientation of this element, which is inherited/set via an attached property on LinearGauge.

protected Orientation Orientation { get; }

Property Value

Orientation:

The orientation.

ScaleBarAscent

Gets the ascent of the scale bar, which is inherited/set via an attached property on LinearScale.

protected double ScaleBarAscent { get; }

Property Value

double:

The ascent of the bar.

ScaleBarExtent

Gets the extent of the scale bar, which is inherited/set via an attached property on ScaleBase.

protected double ScaleBarExtent { get; }

Property Value

double:

The extent of the bar.

StartAscent

Gets or sets the ascent of the range at the StartValue. This is a dependency property.

public Unit StartAscent { get; set; }

Property Value

Unit:

The ascent of the range at the StartValue. The default value is 5 pixels.

Methods

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

EndAscentProperty

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

public static readonly DependencyProperty EndAscentProperty

StartAscentProperty

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

public static readonly DependencyProperty StartAscentProperty

Inherited Members