3 Sep 2020 / 1 minute to read
Based on the progress estimation, you can configure the states of the progress bar.
This is the default state. You can use it when the progress estimation is known.
By enabling the
IsIndeterminate property, the state of the progress bar can be changed to indeterminate when progress cannot be estimated or is not being calculated. It can be combined with determinate mode to let users know that the app is estimating progress before actual progress starts.
// Using linear progress bar. SfLinearProgressBar sfLinearProgressBar = new SfLinearProgressBar(this); sfLinearProgressBar.IsIndeterminate = true; // Using circular progress bar. SfCircularProgressBar circularProgressBar = new SfCircularProgressBar(this); circularProgressBar.IsIndeterminate = true;
The secondary task’s progress can be defined by using the
SecondaryProgress property as shown in the following code example.
SfLinearProgressBar sfLinearProgressBar = new SfLinearProgressBar(this); sfLinearProgressBar.Progress = 75; sfLinearProgressBar.SecondaryProgress = 25;