public sealed record DesktopProgress : IEquatable<DesktopProgress> Progress shown on the window's taskbar button or the application's Dock icon.
Parameters
ValueHow far the work is, from 0 to 1;
nullfor work whose end is unknown.
Remarks
Set it through IWindowPlatformServices.SetProgressAsync, and clear it with null when the work ends.
Constructors
DesktopProgress
public DesktopProgress(double? Value) Progress shown on the window's taskbar button or the application's Dock icon.
Parameters
ValueHow far the work is, from 0 to 1;
nullfor work whose end is unknown.
Remarks
Set it through IWindowPlatformServices.SetProgressAsync, and clear it with null when the work ends.
Properties
State
public DesktopProgressState State { get; init; } Whether the work runs, is paused or failed; Windows colours the bar, macOS and Linux show DesktopProgressState.Normal.
Value
public double? Value { get; init; } How far the work is, from 0 to 1; null for work whose end is unknown.