States in .NET MAUI Linear ProgressBar (SfLinearProgressBar)

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 a determinate mode to know that the application estimates progress before the actual progress starts.

<progressBar:SfLinearProgressBar IsIndeterminate="True"/>
SfLinearProgressBar linearProgressBar = new SfLinearProgressBar { IsIndeterminate = true};
this.Content = linearProgressBar;

.NET MAUI Linear ProgressBar with buffer

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"/>
SfLinearProgressBar linearProgressBar = new SfLinearProgressBar();
linearProgressBar.Progress = 25;
linearProgressBar.SecondaryProgress = 75;
this.Content = linearProgressBar;

.NET MAUI Linear ProgressBar with buffer

NOTE

Refer to our .NET MAUI Linear ProgressBar feature tour page for its groundbreaking feature representations. Also explore our .NET MAUI Linear ProgressBar example that shows how to configure a SfLinearProgressBar in .NET MAUI.