Skip to content

CircularGauge class

Defined in

Namespace: CrissCross.Avalonia.UI.Controls Assembly: CrissCross.Avalonia.UI.dll Full name: CrissCross.Avalonia.UI.Controls.CircularGauge Modifiers: public

Summary

        A circular gauge control that displays a value within a specified range using a radial scale and pointer.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471

Class hierarchy
classDiagram
class CircularGauge
class TemplatedControl
TemplatedControl <|-- CircularGauge

Inherits from: TemplatedControl

Constructors

NameSummary
.ctor

Properties

NameSummary
ValueGets or sets the current value displayed by the gauge.
MinValueGets or sets the minimum value of the gauge scale.
MaxValueGets or sets the maximum value of the gauge scale.
RadiusGets or sets the radius of the gauge.
ScaleStartAngleGets or sets the start angle of the scale in degrees (0 = right, 90 = bottom, 180 = left, 270 = top).
ScaleSweepAngleGets or sets the sweep angle of the scale in degrees.
MajorDivisionsCountGets or sets the number of major divisions on the scale.
MinorDivisionsCountGets or sets the number of minor divisions between major divisions.
PointerLengthGets or sets the length of the pointer.
PointerCapRadiusGets or sets the radius of the pointer cap.
PointerColorGets or sets the pointer color.
ScaleColorGets or sets the scale color.
OptimalRangeColorGets or sets the optimal range color.
BelowOptimalRangeColorGets or sets the below optimal range color.
AboveOptimalRangeColorGets or sets the above optimal range color.
OptimalRangeStartValueGets or sets the optimal range start value.
OptimalRangeEndValueGets or sets the optimal range end value.
DialTextGets or sets the dial text.
UnitGets or sets the unit text.
ShowValueGets or sets a value indicating whether to show the value.
DecimalsGets or sets the number of decimal places.
PointerAngleGets or sets the pointer angle.
ScaleRadiusGets or sets the scale radius.
ScaleLabelRadiusGets or sets the scale label radius.

Fields

NameSummary
static ValuePropertyProperty for [Value](#
static MinValuePropertyProperty for [MinValue](#
static MaxValuePropertyProperty for [MaxValue](#
static RadiusPropertyProperty for [Radius](#
static ScaleStartAnglePropertyProperty for [ScaleStartAngle](#
static ScaleSweepAnglePropertyProperty for [ScaleSweepAngle](#
static MajorDivisionsCountPropertyProperty for [MajorDivisionsCount](#
static MinorDivisionsCountPropertyProperty for [MinorDivisionsCount](#
static PointerLengthPropertyProperty for [PointerLength](#
static PointerCapRadiusPropertyProperty for [PointerCapRadius](#
static PointerColorPropertyProperty for [PointerColor](#
static ScaleColorPropertyProperty for [ScaleColor](#
static OptimalRangeColorPropertyProperty for [OptimalRangeColor](#
static BelowOptimalRangeColorPropertyProperty for [BelowOptimalRangeColor](#
static AboveOptimalRangeColorPropertyProperty for [AboveOptimalRangeColor](#
static OptimalRangeStartValuePropertyProperty for [OptimalRangeStartValue](#
static OptimalRangeEndValuePropertyProperty for [OptimalRangeEndValue](#
static DialTextPropertyProperty for [DialText](#
static UnitPropertyProperty for [Unit](#
static ShowValuePropertyProperty for [ShowValue](#
static DecimalsPropertyProperty for [Decimals](#
static PointerAnglePropertyProperty for [PointerAngle](#
static ScaleRadiusPropertyProperty for [ScaleRadius](#
static ScaleLabelRadiusPropertyProperty for [ScaleLabelRadius](#

Methods

NameSummary
OnApplyTemplateCalled when the control's template is applied. In simple terms, this means the method is called just before the control is displayed.
Inherited members