Pmad.ProgressTracking.Wpf
0.1.15-g3bac7775be
This is a prerelease version of Pmad.ProgressTracking.Wpf.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Pmad.ProgressTracking.Wpf --version 0.1.15-g3bac7775be
NuGet\Install-Package Pmad.ProgressTracking.Wpf -Version 0.1.15-g3bac7775be
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pmad.ProgressTracking.Wpf" Version="0.1.15-g3bac7775be" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pmad.ProgressTracking.Wpf --version 0.1.15-g3bac7775be
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pmad.ProgressTracking.Wpf, 0.1.15-g3bac7775be"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pmad.ProgressTracking.Wpf as a Cake Addin #addin nuget:?package=Pmad.ProgressTracking.Wpf&version=0.1.15-g3bac7775be&prerelease // Install Pmad.ProgressTracking.Wpf as a Cake Tool #tool nuget:?package=Pmad.ProgressTracking.Wpf&version=0.1.15-g3bac7775be&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Progress Toolkit
Long-running task progress tracking toolkit.
The API is not yet stable and may be subject to change.
General usage
You need to create a "Progress Render", to acquire an IProgressScope
that will be the base to create detailed progress reports.
Multiple implementation exists (see below for example and preview) :
- Console (
ConsoleProgessRender
), - WPF (
ProgressViewModel
), - Plain text (
TextProgressRender
)
On a scope you can create :
- sub scope : a progress compose of sub-progress, you can give an estimated number of sub-progress to have an overall progress
- integer/long based progress : your code have to report how many items it have been processed
- percent based progress : your code have to report a progress in percent
To ease inter-operability, provided interfaces derives from IProgress<>
.
Integer Progress (IProgressInteger
)
using (var progress = scope.CreateInteger("Integer", 250))
{
for (int i = 0; i < 250; i++)
{
// do something
rep.ReportOneDone();
}
}
or
using (var progress = scope.CreateInteger("Integer", 250))
{
for (int i = 0; i < 250; i++)
{
// do something
rep.Repport(i);
}
}
Percent Progress (IProgressPercent
)
using (var progress = scope.CreatePercent("Integer"))
{
for (int i = 0; i < 250; i++)
{
// do something
rep.Repport(i * 100.0 / 250);
}
}
Scope (IProgressScope
)
Console
Example: ConsoleDemo
WPF
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- Pmad.ProgressTracking (>= 0.1.15-g3bac7775be)
-
net8.0-windows7.0
- Pmad.ProgressTracking (>= 0.1.15-g3bac7775be)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.1.28 | 234 | 8/20/2024 |
0.1.22 | 134 | 8/19/2024 |
0.1.21-g5004465d93 | 102 | 8/19/2024 |
0.1.16-g0462b12943 | 104 | 8/18/2024 |
0.1.15-g3bac7775be | 113 | 8/18/2024 |
0.1.14-g16d3d7334c | 97 | 8/2/2024 |
0.1.13-g99634b7d95 | 103 | 6/23/2024 |