In This Article

CircularProgressBar.CircularProgressBarTemplateSettings Class

Provides calculated values for use with the CircularProgressBar's control theme or template.

public class CircularProgressBar.CircularProgressBarTemplateSettings : AvaloniaObject
Inheritance:
object AvaloniaObject object

Remarks

This class is NOT intended for general use outside of control templates.

Constructors

CircularProgressBarTemplateSettings()

Initializes an instance of the class.

public CircularProgressBarTemplateSettings()

Properties

Percentage

The overall percentage of progress completed, in the range 0.0..1.0.

public double Percentage { get; }

Property Value

double

Remarks

This property is automatically using the current Avalonia.Controls.Primitives.RangeBase.Value and the effective range (Avalonia.Controls.Primitives.RangeBase.Maximum - Avalonia.Controls.Primitives.RangeBase.Minimum).

ProgressText

The formatted progress text to display.

public string? ProgressText { get; }

Property Value

string

Radius

The ring's outer radius, from which the ring is rendered inward.

public double Radius { get; }

Property Value

double

StartAngle

The indicator start angle in degrees.

public double StartAngle { get; }

Property Value

double

SweepAngle

The indicator sweep angle in degrees.

public double SweepAngle { get; }

Property Value

double

Fields

PercentageProperty

Defines the Percentage property.

public static readonly DirectProperty<CircularProgressBar.CircularProgressBarTemplateSettings, double> PercentageProperty

ProgressTextProperty

Defines the ProgressText property.

public static readonly DirectProperty<CircularProgressBar.CircularProgressBarTemplateSettings, string?> ProgressTextProperty

RadiusProperty

Defines the Radius property.

public static readonly DirectProperty<CircularProgressBar.CircularProgressBarTemplateSettings, double> RadiusProperty

StartAngleProperty

Defines the StartAngle property.

public static readonly DirectProperty<CircularProgressBar.CircularProgressBarTemplateSettings, double> StartAngleProperty

SweepAngleProperty

Defines the SweepAngle property.

public static readonly DirectProperty<CircularProgressBar.CircularProgressBarTemplateSettings, double> SweepAngleProperty

Inherited Members

Extension Methods