<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ProgressDialog not working in ArcGIS Pro 2.7 in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050217#M6482</link>
    <description>&lt;P&gt;Hello ESRI Community,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false))&lt;BR /&gt;{&lt;BR /&gt;var status = new CancelableProgressorSource(progress);&lt;BR /&gt;status.Max = 100;&lt;BR /&gt;progress.Show();&lt;/P&gt;&lt;P&gt;await QueuedTask.Run(async () =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;for (var idx = 0; idx &amp;lt; 10; idx++)&lt;BR /&gt;{&lt;BR /&gt;await Task.Delay(1000);&lt;BR /&gt;status.Progressor.Value += 10;&lt;BR /&gt;status.Progressor.Status = (status.Progressor.Value * 100 / status.Progressor.Max) + @" % Completed";&lt;BR /&gt;status.Progressor.Message = "Message " + status.Progressor.Value;&lt;BR /&gt;}&lt;BR /&gt;}, status.Progressor);&lt;/P&gt;&lt;P&gt;progress.Hide();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;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!&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 18:01:11 GMT</pubDate>
    <dc:creator>TomLiu</dc:creator>
    <dc:date>2021-04-22T18:01:11Z</dc:date>
    <item>
      <title>ProgressDialog not working in ArcGIS Pro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050217#M6482</link>
      <description>&lt;P&gt;Hello ESRI Community,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false))&lt;BR /&gt;{&lt;BR /&gt;var status = new CancelableProgressorSource(progress);&lt;BR /&gt;status.Max = 100;&lt;BR /&gt;progress.Show();&lt;/P&gt;&lt;P&gt;await QueuedTask.Run(async () =&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;for (var idx = 0; idx &amp;lt; 10; idx++)&lt;BR /&gt;{&lt;BR /&gt;await Task.Delay(1000);&lt;BR /&gt;status.Progressor.Value += 10;&lt;BR /&gt;status.Progressor.Status = (status.Progressor.Value * 100 / status.Progressor.Max) + @" % Completed";&lt;BR /&gt;status.Progressor.Message = "Message " + status.Progressor.Value;&lt;BR /&gt;}&lt;BR /&gt;}, status.Progressor);&lt;/P&gt;&lt;P&gt;progress.Hide();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;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!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050217#M6482</guid>
      <dc:creator>TomLiu</dc:creator>
      <dc:date>2021-04-22T18:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not working in ArcGIS Pro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050518#M6488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you test it in debug mode? ProgressDialog does not show in Debug mode.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-text-of-progressdialog/td-p/858359" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-text-of-progressdialog/td-p/858359&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Framework/ProgressDialog/ProgressDialog%20(C%23).md" target="_self"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Framework/ProgressDialog/ProgressDialog%20(C%23).md&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Run ArcGIS Pro without running the Visual Studio Debugger.&lt;/P&gt;&lt;P&gt;4. Progress Dialog boxes are disabled when debugging in Visual Studio.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 05:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050518#M6488</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-04-23T05:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not working in ArcGIS Pro 2.7</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050702#M6493</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt;&amp;nbsp; is correct ProgressDialog does not show up in Debug mode.&amp;nbsp; I tried your snippet in 2.7 and it worked, however, the 'await Task.Delay(1000)' didn't delay for me by 1 second as I expected.&amp;nbsp; Instead I used&amp;nbsp;System.Threading.Thread.Sleep(1000), which did the job.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 14:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-working-in-arcgis-pro-2-7/m-p/1050702#M6493</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-04-23T14:56:21Z</dc:date>
    </item>
  </channel>
</rss>

