Progress Indicator
Description
The ProgressIndicator is a UI component used to visually represent the completion status of an operation when the total units of work are known. It displays a horizontal progress bar that updates based on a percentage value. If the progress cannot be determined, the component can be set to an "indeterminate" state, where continuous animation is shown instead of a finite progress percentage. Use this component to provide users with a visual indication of progress in long-running operations.
Usage
The component is instantiated using the fluent API provided by the Tesserae UI static class. You can create a new ProgressIndicator and configure it to show either a determinate progress value (by setting a percentage) or an indeterminate state.
Below is an example of how to instantiate and update the progress indicator:
API reference
public class ProgressIndicator : IComponent, IHasForegroundColorA horizontal progress bar with optional label and either determinate or indeterminate state.
Constructors
Properties
Methods
public ProgressIndicator Progress(int position, int total)Configures the component to progress.
public ProgressIndicator Progress(float percent)Configures the component to progress.
public ProgressIndicator Indeterminated()Configures the component to indeterminated.
Samples
Displaying Various Progress States
This sample shows how to create and render multiple instances of the ProgressIndicator component in various states including determinate progress and an indeterminate state.