-
-
Notifications
You must be signed in to change notification settings - Fork 5
ProgressBar
Iuga Alexandru edited this page Jan 5, 2018
·
5 revisions
- Displays a progress bar and the associated value.
- Custom Value positioning: left or right.
- Custom unit of measurement.
- Custom label text.
- Custom value range.
- Option available to allow values outside range.
ManualResetEventSlim finishEvent = new ManualResetEventSlim();
finishEvent.Reset();
Spinners.ProgressBar progressBar = new Spinners.ProgressBar();
Task.Run<Task>(async () =>
{
progressBar.Display();
for (int i = 0; i < 100; i++)
{
await Task.Delay(100);
progressBar.Value++;
}
finishEvent.Set();
});
finishEvent.Wait();
progressBar.Done();