<?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 How do you iterate a Progressor? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807899#M2247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show a progressor while I loop through the selected features and do stuff and let the user know how long it will take.&amp;nbsp; I can get the Progressor to display, but it only goes from left to right, then starts over at the left and continues this until it's done.&amp;nbsp; I set progressor.Max to the count of selected features and inside my loop (while cursor.MoveNext()) I do progressor.Value += 1, but I can't get it to start on the left and go to the right, stopping when value = max.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 15:42:24 GMT</pubDate>
    <dc:creator>TedChapin</dc:creator>
    <dc:date>2016-07-07T15:42:24Z</dc:date>
    <item>
      <title>How do you iterate a Progressor?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807899#M2247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show a progressor while I loop through the selected features and do stuff and let the user know how long it will take.&amp;nbsp; I can get the Progressor to display, but it only goes from left to right, then starts over at the left and continues this until it's done.&amp;nbsp; I set progressor.Max to the count of selected features and inside my loop (while cursor.MoveNext()) I do progressor.Value += 1, but I can't get it to start on the left and go to the right, stopping when value = max.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 15:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807899#M2247</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2016-07-07T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you iterate a Progressor?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807900#M2248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ted,&lt;/P&gt;&lt;P&gt; I you use the sample @ &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ProgressDialog"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ProgressDialog&lt;/SPAN&gt;&lt;/A&gt; and make the update below in the "RunDialogButtonsCancel" class you will get the desired effect.&amp;nbsp; I will update the sample soon to reflect this capability.&amp;nbsp; The trick is to create your own ProgressDialog instance and specify the 'maximum steps' parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;protected override async void OnClick()&lt;/P&gt;&lt;P&gt; {&amp;nbsp;&amp;nbsp; //If you run this in the DEBUGGER you will NOT see the dialog&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint maxSteps = 5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pd = new ArcGIS.Desktop.Framework.Threading.Tasks.ProgressDialog(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Doing my thing - cancelable", "Canceled", maxSteps, false);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; await&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProgressDialogModule.RunCancelableProgress(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new CancelableProgressorSource(pd), maxSteps);&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:01:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807900#M2248</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2016-07-15T18:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you iterate a Progressor?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807901#M2249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ted,&lt;/P&gt;&lt;P&gt; I updated the sample @ &lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FEsri%2Farcgis-pro-sdk-community-samples%2Ftree%2Fmaster%2FFramework%2FProgressDialog" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ProgressDialog&lt;/SPAN&gt;&lt;/A&gt; and added a progress dialog that iterates through a given number of steps as shown in my post above (see the readme.md for a screenshot of this functionality).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 18:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-iterate-a-progressor/m-p/807901#M2249</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2016-07-15T18:53:13Z</dc:date>
    </item>
  </channel>
</rss>

