Class
GaugeNeedleIndicator

Represents a needle indicator for gauge controls that displays a single value using a needle shape.

Definition

Constructors

GaugeNeedleIndicator()

Initializes a new instance of the GaugeNeedleIndicator class.

Declaration

cs-api-definition
public GaugeNeedleIndicator()

Fields

ShapeProperty

Identifies the Shape property.

Declaration

cs-api-definition
public static readonly BindableProperty ShapeProperty

Field Value

BindableProperty

Properties

Shape

Gets or sets the path geometry that represents the shape of the needle. At run-time this geometry is scaled so that its width fits the diameter of the radial gauge (Position and Offset are also taken into account). In order for the needle to be positioned properly the positions of the provided geometry must be normalized between 0 and 1. The center of the needle is considered to be in the center of the normalized rectangle, i.e. (0.5, 0.5). The orientation of the needle is considered to be at 0 degrees from its center, i.e. the tip of the needle is at (1.0, 0.5).

Declaration

cs-api-definition
[TypeConverter(typeof(GeometryTypeConverter))]
public RadPathGeometry Shape { get; set; }

Property Value

RadPathGeometry

A RadPathGeometry representing the needle shape.

Methods

OnPropertyChanged(string)

Called when a property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(string propertyName = null)

Parameters

propertyName

string

The name of the property that changed.