States in .NET MAUI Linear Progress Bar
18 Nov 20181 minute to read
Configure the states of the Linear Progress Bar control depending on the usage.
Determinate
This is the default state. Use it when the progress estimation is known.
Indeterminate
By enabling the IsIndeterminate property, the state of the Linear Progress Bar can be changed to indeterminate when the progress cannot be estimated or is not being calculated. It can be combined with the determinate mode to indicate that the application estimates progress before the actual progress starts.
<progressBar:SfLinearProgressBar IsIndeterminate="true"/>using Syncfusion.Maui.ProgressBar;
SfLinearProgressBar linearProgressBar = new SfLinearProgressBar { IsIndeterminate = true };
this.Content = linearProgressBar;
Buffer
The secondary task’s progress can be defined using the SecondaryProgress property as demonstrated in the following code sample.
<progressBar:SfLinearProgressBar Progress="25"
SecondaryProgress="75"/>using Syncfusion.Maui.ProgressBar;
SfLinearProgressBar linearProgressBar = new SfLinearProgressBar();
linearProgressBar.Progress = 25;
linearProgressBar.SecondaryProgress = 75;
this.Content = linearProgressBar;
NOTE
Refer to our .NET MAUI Linear Progress Bar feature tour page for its groundbreaking feature representations. Also explore our .NET MAUI Linear Progress Bar example that shows how to configure a SfLinearProgressBar in .NET MAUI.