Table of Contents

Class ProgressRing

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Rotating loading ring.

public class ProgressRing : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient
Inheritance
ProgressRing
Implements
Inherited Members

Fields

CoverRingStrokeProperty

Identifies the CoverRingStroke dependency property.

public static readonly DependencyProperty CoverRingStrokeProperty

Field Value

DependencyProperty

CoverRingVisibilityProperty

Identifies the CoverRingVisibility dependency property.

public static readonly DependencyProperty CoverRingVisibilityProperty

Field Value

DependencyProperty

EngAngleProperty

Identifies the EngAngle dependency property.

public static readonly DependencyProperty EngAngleProperty

Field Value

DependencyProperty

IndeterminateAngleProperty

Identifies the IndeterminateAngle dependency property.

public static readonly DependencyProperty IndeterminateAngleProperty

Field Value

DependencyProperty

IsIndeterminateProperty

Identifies the IsIndeterminate dependency property.

public static readonly DependencyProperty IsIndeterminateProperty

Field Value

DependencyProperty

ProgressProperty

Identifies the Progress dependency property.

public static readonly DependencyProperty ProgressProperty

Field Value

DependencyProperty

Properties

CoverRingStroke

Gets background ring fill.

public Brush CoverRingStroke { get; }

Property Value

Brush

CoverRingVisibility

Gets background ring visibility.

public Visibility CoverRingVisibility { get; }

Property Value

Visibility

EngAngle

Gets or sets the EndAngle.

public double EngAngle { get; set; }

Property Value

double

IndeterminateAngle

Gets the EndAngle when IsIndeterminate is true.

public double IndeterminateAngle { get; }

Property Value

double

IsIndeterminate

Gets or sets a value indicating whether ProgressRing shows actual values (false) or generic, continuous progress feedback.

public bool IsIndeterminate { get; set; }

Property Value

bool

Progress

Gets or sets the progress.

public double Progress { get; set; }

Property Value

double

Methods

OnProgressChanged(DependencyObject, DependencyPropertyChangedEventArgs)

Validates the entered Progress and redraws the Arc.

protected static void OnProgressChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject
e DependencyPropertyChangedEventArgs

UpdateProgressAngle()

Re-draws EndAngle depending on Progress.

protected void UpdateProgressAngle()