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

Represents a gauge indicator that displays a custom shape at a specific position on the gauge. This indicator extends GaugeSingleValueIndicatorBase to provide shape-based visual representation.

Definition

Constructors

Initializes a new instance of the GaugeShapeIndicator class.

C#
public GaugeShapeIndicator()

Fields

ShapeProperty

BindableProperty

Identifies the Shape bindable property.

C#
public static readonly BindableProperty ShapeProperty

SizeProperty

BindableProperty

Identifies the Size bindable property.

C#
public static readonly BindableProperty SizeProperty

Properties

Gets or sets the path geometry that represents the shape of the indicator. At run-time this geometry is positioned in accordance to the Position and Offset properties and is scaled in accordance to the Size property. In order for the shape to be positioned and scaled properly the positions of the provided geometry must be normalized between 0 and 1. The pivotal point of the shape is considered to be its center, i.e. (0.5, 0.5). The orientation of the indicator is considered to be from (1.0, 0.5) to its center.

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

A RadPathGeometry that defines the visual shape of the indicator.

Gets or sets the absolute size of the indicator.

C#
public double Size { get; set; }
Property Value:

A double representing the size of the indicator in device-independent units.

Methods

Called when a property value changes to update the internal model.

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

The name of the property that changed. This parameter is automatically provided by the CallerMemberNameAttribute.