Class
GaugeShapeIndicator

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

GaugeShapeIndicator()

Initializes a new instance of the GaugeShapeIndicator class.

Declaration

cs-api-definition
public GaugeShapeIndicator()

Fields

ShapeProperty

Identifies the Shape bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty ShapeProperty

Field Value

BindableProperty

SizeProperty

Identifies the Size bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty SizeProperty

Field Value

BindableProperty

Properties

Shape

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.

Declaration

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

Property Value

RadPathGeometry

A RadPathGeometry that defines the visual shape of the indicator.

Size

Gets or sets the absolute size of the indicator.

Declaration

cs-api-definition
public double Size { get; set; }

Property Value

double

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

Methods

OnPropertyChanged(string)

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

Declaration

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

Parameters

propertyName

string

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