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¶
| Name | Summary |
|---|---|
| .ctor |
Properties¶
| Name | Summary |
|---|---|
| Value | Gets or sets the current value displayed by the gauge. |
| MinValue | Gets or sets the minimum value of the gauge scale. |
| MaxValue | Gets or sets the maximum value of the gauge scale. |
| Radius | Gets or sets the radius of the gauge. |
| ScaleStartAngle | Gets or sets the start angle of the scale in degrees (0 = right, 90 = bottom, 180 = left, 270 = top). |
| ScaleSweepAngle | Gets or sets the sweep angle of the scale in degrees. |
| MajorDivisionsCount | Gets or sets the number of major divisions on the scale. |
| MinorDivisionsCount | Gets or sets the number of minor divisions between major divisions. |
| PointerLength | Gets or sets the length of the pointer. |
| PointerCapRadius | Gets or sets the radius of the pointer cap. |
| PointerColor | Gets or sets the pointer color. |
| ScaleColor | Gets or sets the scale color. |
| OptimalRangeColor | Gets or sets the optimal range color. |
| BelowOptimalRangeColor | Gets or sets the below optimal range color. |
| AboveOptimalRangeColor | Gets or sets the above optimal range color. |
| OptimalRangeStartValue | Gets or sets the optimal range start value. |
| OptimalRangeEndValue | Gets or sets the optimal range end value. |
| DialText | Gets or sets the dial text. |
| Unit | Gets or sets the unit text. |
| ShowValue | Gets or sets a value indicating whether to show the value. |
| Decimals | Gets or sets the number of decimal places. |
| PointerAngle | Gets or sets the pointer angle. |
| ScaleRadius | Gets or sets the scale radius. |
| ScaleLabelRadius | Gets or sets the scale label radius. |
Fields¶
| Name | Summary |
|---|---|
| static ValueProperty | Property for [Value](# |
| static MinValueProperty | Property for [MinValue](# |
| static MaxValueProperty | Property for [MaxValue](# |
| static RadiusProperty | Property for [Radius](# |
| static ScaleStartAngleProperty | Property for [ScaleStartAngle](# |
| static ScaleSweepAngleProperty | Property for [ScaleSweepAngle](# |
| static MajorDivisionsCountProperty | Property for [MajorDivisionsCount](# |
| static MinorDivisionsCountProperty | Property for [MinorDivisionsCount](# |
| static PointerLengthProperty | Property for [PointerLength](# |
| static PointerCapRadiusProperty | Property for [PointerCapRadius](# |
| static PointerColorProperty | Property for [PointerColor](# |
| static ScaleColorProperty | Property for [ScaleColor](# |
| static OptimalRangeColorProperty | Property for [OptimalRangeColor](# |
| static BelowOptimalRangeColorProperty | Property for [BelowOptimalRangeColor](# |
| static AboveOptimalRangeColorProperty | Property for [AboveOptimalRangeColor](# |
| static OptimalRangeStartValueProperty | Property for [OptimalRangeStartValue](# |
| static OptimalRangeEndValueProperty | Property for [OptimalRangeEndValue](# |
| static DialTextProperty | Property for [DialText](# |
| static UnitProperty | Property for [Unit](# |
| static ShowValueProperty | Property for [ShowValue](# |
| static DecimalsProperty | Property for [Decimals](# |
| static PointerAngleProperty | Property for [PointerAngle](# |
| static ScaleRadiusProperty | Property for [ScaleRadius](# |
| static ScaleLabelRadiusProperty | Property for [ScaleLabelRadius](# |
Methods¶
| Name | Summary |
|---|---|
| OnApplyTemplate | Called when the control's template is applied. In simple terms, this means the method is called just before the control is displayed. |