ProgressModal

Description

ProgressModal is a modal dialog component designed for displaying progress information in a blocking UI overlay. It is part of the Progress group and is ideal when you need to inform users about ongoing processes—whether they are percentage-based or indeterminate. The component supports dynamic messages, switching between a spinner and a progress indicator, and cancellation actions.

Usage

You can instantiate the ProgressModal using the static helper method from Tesserae.UI. This example demonstrates creating a progress modal with a title, a dynamic message, and a cancel button:

API reference

class

ProgressModal

public class ProgressModal

A modal that shows a progress bar while a long-running operation completes, with optional cancel button.

Namespace
Tesserae

Constructors

NameDescription
ProgressModalInitializes a new instance of this class.
Constructor
ProgressModal
public ProgressModal()

Initializes a new instance of this class.

Methods

NameDescription
ShowShows the component.
ShowEmbeddedShows the embedded.
HideHides the component.
MessageConfigures the component to message.
TitleGets or sets the title of the component.
ProgressConfigures the component to progress.
ProgressIndeterminatedConfigures the progress indeterminated on the component.
ProgressSpinConfigures the progress spin on the component.
WithCancelReturns the component configured with the given cancel.
Method
ProgressModal.Show
public ProgressModal Show()

Shows the component.

Method
ProgressModal.ShowEmbedded
public IComponent ShowEmbedded()

Shows the embedded.

Method
ProgressModal.Hide
public ProgressModal Hide()

Hides the component.

Method
ProgressModal.Message
Overload
Message(string)Configures the component to message.
Message(IComponent)Configures the component to message.
Message(string)
public ProgressModal Message(string message)

Configures the component to message.

Parameters

message string
Message(IComponent)
public ProgressModal Message(IComponent message)

Configures the component to message.

Parameters

message IComponent
Method
ProgressModal.Title
Overload
Title(string)Gets or sets the title of the component.
Title(IComponent)Gets or sets the title of the component.
Title(string)
public ProgressModal Title(string title)

Gets or sets the title of the component.

Parameters

title string
Title(IComponent)
public ProgressModal Title(IComponent title)

Gets or sets the title of the component.

Parameters

title IComponent
Method
ProgressModal.Progress
Overload
Progress(float)Configures the component to progress.
Progress(int, int)Configures the component to progress.
Progress(float)
public ProgressModal Progress(float percent)

Configures the component to progress.

Parameters

percent float
Progress(int, int)
public ProgressModal Progress(int position, int total)

Configures the component to progress.

Parameters

position int
total int
Method
ProgressModal.ProgressIndeterminated
public ProgressModal ProgressIndeterminated()

Configures the progress indeterminated on the component.

Method
ProgressModal.ProgressSpin
public ProgressModal ProgressSpin()

Configures the progress spin on the component.

Method
ProgressModal.WithCancel
public ProgressModal WithCancel(Action<Button> onCancel, Action<Button> btnCancel = null)

Returns the component configured with the given cancel.

Samples

Basic Usage Sample

In this sample, the ProgressModal is displayed with dynamic updates and a cancel button. The modal starts with a spinner, updates to show percentage-based progress, and finally switches to an indeterminate state before hiding.

See also

© 2026 Curiosity. All rights reserved.