<?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 Re: ProgressDialog not showing even without debugging mode .net sdk in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248402#M9285</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that you update progress not from UI thread. This link could help you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-show-progress/m-p/778671" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-show-progress/m-p/778671&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 06:29:05 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2023-01-16T06:29:05Z</dc:date>
    <item>
      <title>ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248356#M9284</link>
      <description>&lt;P&gt;I have created a&amp;nbsp;ProgressDialog but not able to see even without debugging mode on button click event.&lt;/P&gt;&lt;P&gt;protected override async void OnClick()&lt;BR /&gt;{&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;uint step = 0;&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;BR /&gt;}&lt;/P&gt;&lt;P&gt;Any ideas here??&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 05:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248356#M9284</guid>
      <dc:creator>JohnP18</dc:creator>
      <dc:date>2023-01-15T05:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248402#M9285</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that you update progress not from UI thread. This link could help you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-show-progress/m-p/778671" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-show-progress/m-p/778671&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 06:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248402#M9285</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-01-16T06:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248452#M9287</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;I don't have any separate Xaml to add the WPF Progress Bar. I just have a button in the tab. On that button click I am calling an api for which I have to use the progress till the time we will get the response. The example shows the Wpf progress bar not the pro one.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 12:17:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248452#M9287</guid>
      <dc:creator>JohnP18</dc:creator>
      <dc:date>2023-01-16T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248488#M9291</link>
      <description>&lt;P&gt;If you are running add-ins from Visual studio it will not show progress dialog ( no matter Debug or Release mode) . Try to run it directly from ArcGISPro.exe executable.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 15:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248488#M9291</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-01-16T15:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248489#M9292</link>
      <description>&lt;P&gt;There are some examples that show WPF progressors on Dockpanes in the 2022 Palm Springs tech session (&lt;A href="https://esri.github.io/arcgis-pro-sdk/techsessions/2022/PalmSprings/ImprovingYourDockpaneandProWindow.zip" target="_blank" rel="noopener"&gt;https://esri.github.io/arcgis-pro-sdk/techsessions/2022/PalmSprings/ImprovingYourDockpaneandProWindow.zip&lt;/A&gt;) , all 2022 tech sessions are here, the one you want to look at is called '&amp;nbsp;Improving Your Dockpane and ProWindow':&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/tech-sessions#2022-palm-springs" target="_blank" rel="noopener"&gt;Tech Sessions · Esri/arcgis-pro-sdk Wiki (github.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wolf_0-1673886029129.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/60499i4FB2E5A3620CFC78/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Wolf_0-1673886029129.png" alt="Wolf_0-1673886029129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 16:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248489#M9292</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2023-01-16T16:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: ProgressDialog not showing even without debugging mode .net sdk</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248516#M9294</link>
      <description>&lt;P&gt;This looks suspect to me - the await on the Task.Delay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;await QueuedTask.Run(async () =&amp;gt;
{
  ...
  await Task.Delay(1000);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think if u change your code to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;await QueuedTask.Run(() =&amp;gt;
{
   Task.Delay(1000).Wait();//block&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will get the effect u are after. &lt;STRIKE&gt;Also, 1000 might be a little bit too quick. 2000+ may be better&lt;/STRIKE&gt;. Scratch that - u r in a loop, 1000 is fine.&amp;nbsp; From memory I think there is an option on the ProgressDialog ctor - delayedShow. Default is true so u can set that to false to have the dialog immediately show. Last, I dont think the progress.Hide() is necessary.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 18:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/progressdialog-not-showing-even-without-debugging/m-p/1248516#M9294</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2023-01-16T18:16:00Z</dc:date>
    </item>
  </channel>
</rss>

