In This Article

CircularPointerBase Class

Represents a base class for linear pointers.

public abstract class CircularPointerBase : PointerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, ILogicalParent, IVisualParent
Inheritance:
System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement GaugeElement PointerBase Object
Derived:
CircularPointerBar CircularPointerCap CircularPointerLabel CircularPointerMarker CircularPointerNeedle
Implements:
ILogicalParent IVisualParent

Remarks

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

Constructors

CircularPointerBase()

protected CircularPointerBase()

Properties

PointerDirection

Gets or sets the direction the pointer will rotate on value changes. This is a dependency property.

public CircularPointerDirection PointerDirection { get; set; }

Property Value

CircularPointerDirection:

The direction the pointer will rotate on value changes. The default value is CircularPointerDirection.Normal.

Radius

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

protected double Radius { get; }

Property Value

System.Double:

The radius.

ScaleBarExtent

Gets the extent of the bar in the associated ScaleBase.

protected double ScaleBarExtent { get; }

Property Value

System.Double:

The extent of the bar.

StartAngle

Gets the associated start angle of this element, which is inherited/set via an attached property on CircularScale.

protected double StartAngle { get; }

Property Value

System.Double:

The start angle.

SweepAngle

Gets the associated sweep angle of this element, which is inherited/set via an attached property on CircularScale.

protected double SweepAngle { get; }

Property Value

System.Double:

The sweep angle.

ValueAngle

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

protected double ValueAngle { get; set; }

Property Value

System.Double:

The value angle. The default value is 0.

Methods

CalculateAngle(Double)

Calculates an angle (not including the start angle) for the specified value.

protected double CalculateAngle(double value)
Parameter Type Description
value System.Double

The value.

Returns

System.Double:

The angle of the specified value, not including the start angle.

CalculateValue(Double)

Calculates the value based on a specified angle.

protected double CalculateValue(double angle)
Parameter Type Description
angle System.Double

The angle.

Returns

System.Double:

The value of specified angle.

CalculateValue(Point)

Calculates the value based on a specified point.

protected override double CalculateValue(Point point)
Parameter Type Description
point System.Windows.Point

The point.

Returns

System.Double:

The value of specified point.

UpdateDisplayValue()

Updates the DisplayValue property.

protected virtual void UpdateDisplayValue()

UpdateValueAngle()

Updates the ValueAngle property.

protected virtual void UpdateValueAngle()

Fields

PointerDirectionProperty

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

public static readonly DependencyProperty PointerDirectionProperty

ValueAngleProperty

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

protected static readonly DependencyProperty ValueAngleProperty

Inherited Members

Extension Methods