<?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 Visualize long running Task in Dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/visualize-long-running-task-in-dockpane/m-p/1085187#M6966</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created a dockpane that executes a long running process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Customer wants my AddIn to visualize its Progress exactly like the Progress in the Geoprocessing-Tools with an Details-Dialoge (Screenshots).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any Documentation about a Progressbar like that or any Community-Sample?&lt;BR /&gt;I've only found WPF-ProgressBar, Spinner and the ProgressDialog but not the one I'm searching for.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Aug 2021 08:00:49 GMT</pubDate>
    <dc:creator>Fabeabe</dc:creator>
    <dc:date>2021-08-03T08:00:49Z</dc:date>
    <item>
      <title>Visualize long running Task in Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/visualize-long-running-task-in-dockpane/m-p/1085187#M6966</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've created a dockpane that executes a long running process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My Customer wants my AddIn to visualize its Progress exactly like the Progress in the Geoprocessing-Tools with an Details-Dialoge (Screenshots).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any Documentation about a Progressbar like that or any Community-Sample?&lt;BR /&gt;I've only found WPF-ProgressBar, Spinner and the ProgressDialog but not the one I'm searching for.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 08:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/visualize-long-running-task-in-dockpane/m-p/1085187#M6966</guid>
      <dc:creator>Fabeabe</dc:creator>
      <dc:date>2021-08-03T08:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Visualize long running Task in Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/visualize-long-running-task-in-dockpane/m-p/1085858#M6979</link>
      <description>&lt;P&gt;The Geoprocessing tool's dockpane is using a third party control(s) for its user interface including the progress bar.&amp;nbsp; Unfortunately this control is not available through the Pro SDK's API.&amp;nbsp; You can however, style a WPF Progressbar control to match the Geoprocessing's progress bar.&amp;nbsp; &amp;nbsp;The Overlay3D community sample is using a progress bar on a dockpane:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/Overlay3D" target="_blank"&gt;arcgis-pro-sdk-community-samples/Map-Exploration/Overlay3D at master · Esri/arcgis-pro-sdk-community-samples (github.com).&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As with all WPF controls you have to make sure that you update any WPF properties only on the GUI thread.&amp;nbsp; To show progress from a background or worker thread (like from within QueuedTask.Run() ) you have to update the ProgressValue property of the WPF progress bar on the GUI thread, which you can do by using the Dispatcher's Invoke method:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;System.Windows.Application.Current.Dispatcher.Invoke(() =&amp;gt; {
  // update your WPF property here:
  ProgressValue++;
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 17:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/visualize-long-running-task-in-dockpane/m-p/1085858#M6979</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-08-04T17:41:20Z</dc:date>
    </item>
  </channel>
</rss>

