Skip to content
DocsTry Aspire
DocsTry

ProgressInteractionOptions Properties

ClassProperties2 members
Options for configuring a progress interaction.
TitleSection titled Titlenullablestring?
Gets or sets the optional title of the progress dialog.
public string? Title { get; set; }
WorkSection titled WorknullableFunc<ProgressContext, Task>
Gets or sets an optional asynchronous work callback to execute while the progress dialog is displayed.
public Func<ProgressContext, Task>? Work { get; set; }
When provided, the progress dialog remains open while this callback executes and closes automatically when the callback completes. The ProgressContext.CancellationToken passed to the callback is triggered when the user clicks the cancel button or the operation is externally canceled. When not provided, the dialog remains open until the Threading.CancellationToken passed to IInteractionService.PromptProgressAsync is canceled.