Open vpenades opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Summary
ProgressBar reason of existence is for its progress to be updated as a task progresses. This is done by updating the
double Progress
property.This means we have to pass the ProgressBar to the running task so the task can update the property, which means making the task by aware of the
ProgressBar
type.API Changes
Simply let ProgressBar implement
System.IProgress<double>
Optionally, it could also implement other types like
System.IProgress<single>
andSystem.IProgress<int>
e.g.
Intended Use Case
let's say we have an async method that reports the progress:
Best of all, this could be done with async methods located in libraries that don't need to have knowledge of Maui types.
PD. Actually, it could have been great if Forms/WPF/Xamarin would also implement this in their respective controls...