New to Telerik UI for .NET MAUIStart a free 30-day trial

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

Definition

Constructors

Initializes a new instance of the GaugeNeedleIndicator class.

C#
public GaugeNeedleIndicator()

Fields

ShapeProperty

BindableProperty

Identifies the Shape property.

C#
public static readonly BindableProperty ShapeProperty

Properties

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).

C#
[TypeConverter(typeof(GeometryTypeConverter))]
public RadPathGeometry Shape { get; set; }
Property Value:

A RadPathGeometry representing the needle shape.

Methods

Called when a property value changes.

C#
protected override void OnPropertyChanged(string propertyName = null)
Parameters:propertyNamestring

The name of the property that changed.