In This Article

CircularPointerCap Class

Represents a cap pointer for use in a CircularGauge.

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

Constructors

CircularPointerCap()

Initializes an instance of the class.

public CircularPointerCap()

Properties

CanRotate

Indicates whether the circular pointer cap should be rotated to point to the associated value.

public bool CanRotate { get; set; }

Property Value

bool:

true if the pointer cap should rotate; otherwise, false. The default value is false.

CapType

The type of cap rendered.

public PointerCapType CapType { get; set; }

Property Value

PointerCapType:

The default value is CircleConcave.

Geometry

The custom geometry.

public Geometry? Geometry { get; set; }

Property Value

Geometry

Remarks

This property is only used when CapType 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 CapType is set to CustomImage.

IsBackgroundEffectEnabled

Indicates whether a special effect should be rendered for the background of the cap.

public bool IsBackgroundEffectEnabled { get; set; }

Property Value

bool:

true if the background effect is enabled; otherwise, false. The default value is true.

Methods

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer? OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

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

CanRotateProperty

Defines the CanRotate property.

public static readonly DependencyProperty CanRotateProperty

CapTypeProperty

Defines the CapType property.

public static readonly DependencyProperty CapTypeProperty

GeometryProperty

Defines the Geometry property.

public static readonly DependencyProperty GeometryProperty

ImageSourceProperty

Defines the ImageSource property.

public static readonly DependencyProperty ImageSourceProperty

IsBackgroundEffectEnabledProperty

Defines the IsBackgroundEffectEnabled property.

public static readonly DependencyProperty IsBackgroundEffectEnabledProperty

Inherited Members

Extension Methods