In This Article

CircularPointerNeedle Class

Represents a needle pointer for use in a CircularGauge.

public class CircularPointerNeedle : CircularPointerBase, ILogicalParent, IVisualParent
Inheritance:
object Visual UIElement FrameworkElement GaugeElement PointerBase CircularPointerBase object
Implements:
ILogicalParent IVisualParent

Constructors

CircularPointerNeedle()

Initializes an instance of the class.

public CircularPointerNeedle()

Properties

Geometry

The custom geometry.

public Geometry? Geometry { get; set; }

Property Value

Geometry

Remarks

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

ImageSource

The source of a custom image.

public ImageSource? ImageSource { get; set; }

Property Value

ImageSource

Remarks

This property is only used when NeedleType is set to CustomImage.

NeedleType

The type of needle rendered.

public PointerNeedleType NeedleType { get; set; }

Property Value

PointerNeedleType:

The default value is Rectangle.

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

GeometryProperty

Defines the Geometry property.

public static readonly DependencyProperty GeometryProperty

ImageSourceProperty

Defines the ImageSource property.

public static readonly DependencyProperty ImageSourceProperty

NeedleTypeProperty

Defines the NeedleType property.

public static readonly DependencyProperty NeedleTypeProperty

Inherited Members

Extension Methods