ClassGaugeNeedleIndicator
Represents a needle indicator for gauge controls that displays a single value using a needle shape.
Definition
Namespace:Telerik.Maui.Controls.Gauges
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class GaugeNeedleIndicator : GaugeSingleValueIndicatorBase
Inheritance: objectGaugeIndicatorBaseGaugeSingleValueIndicatorBaseGaugeNeedleIndicator
Inherited Members
Constructors
GaugeNeedleIndicator()
Initializes a new instance of the GaugeNeedleIndicator class.
Declaration
public GaugeNeedleIndicator()
Fields
ShapeProperty
Identifies the Shape property.
Declaration
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
[TypeConverter(typeof(GeometryTypeConverter))]
public RadPathGeometry Shape { get; set; }
Property Value
A RadPathGeometry representing the needle shape.
Methods
OnPropertyChanged(string)
Called when a property value changes.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
propertyName
The name of the property that changed.