Hello ESRI Community,
Please help advise how to fix the issue. Currently I am using ArcGIS Pro 2.7. I am developing add-in button which tries to open ProgressDialog. I am using the following sample code from GitHub.
using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false))
{
var status = new CancelableProgressorSource(progress);
status.Max = 100;
progress.Show();
await QueuedTask.Run(async () =>
{
for (var idx = 0; idx < 10; idx++)
{
await Task.Delay(1000);
status.Progressor.Value += 10;
status.Progressor.Status = (status.Progressor.Value * 100 / status.Progressor.Max) + @" % Completed";
status.Progressor.Message = "Message " + status.Progressor.Value;
}
}, status.Progressor);
progress.Hide();
}
For some reason, the ProgressDialog doesn't show up. The ProgressDialog was working fine in 2.6, but not in 2.7. Please advise how I can resolve this issue, because we're upgrading to 2.7 now and can't downgrade to 2.6. Thanks!