In This Article

LinearPointerBase Class

Represents a base class for linear pointers.

public abstract class LinearPointerBase : PointerBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement PointerBase object
Derived:
LinearPointerBar LinearPointerLabel LinearPointerMarker
Implements:
ILogicalParent IVisualParent

Remarks

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

Constructors

LinearPointerBase()

Initializes a new instance of the LinearPointerBase class.

protected LinearPointerBase()

Properties

Orientation

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

protected Orientation Orientation { get; }

Property Value

Orientation:

The radius.

ScaleBarAscent

Gets the ascent of the bar in the associated ScaleBase.

protected double ScaleBarAscent { get; }

Property Value

double:

The ascent of the bar.

ScaleBarExtent

Gets the extent of the bar in the associated ScaleBase.

protected double ScaleBarExtent { get; }

Property Value

double:

The extent of the bar.

ValueExtent

Gets or sets the extent used to display the Value on the linear gauge. This is a dependency property.

protected double ValueExtent { get; set; }

Property Value

double:

The value extent. The default value is 0.

Methods

CalculateExtent(double)

Calculates an extent (not including the left/top offsets) for the specified value.

protected double CalculateExtent(double value)
Parameter Type Description
value double

The value.

Returns

double:

The extent of the specified value, not including the left/top offsets.

CalculateValue(double)

Calculates the value based on a specified extent.

protected double CalculateValue(double extent)
Parameter Type Description
extent double

The extent.

Returns

double:

The value of the specified extent.

CalculateValue(Point)

Calculates the value based on a specified point.

protected override double CalculateValue(Point point)
Parameter Type Description
point Point

The point.

Returns

double:

The value of specified point.

OnRenderSizeChanged(SizeChangedInfo)

Raises the SizeChanged event, using the specified information as part of the eventual event data.

protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameter Type Description
sizeInfo SizeChangedInfo

Details of the old and new size involved in the change.

UpdateDisplayValue()

Updates the DisplayValue property.

protected virtual void UpdateDisplayValue()

UpdateValueExtent()

Updates the ValueExtent property.

protected virtual void UpdateValueExtent()

Fields

ValueExtentProperty

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

protected static readonly DependencyProperty ValueExtentProperty

Inherited Members