<?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: Send multi messages to Dockpane in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1130314#M7567</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below works for me...&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;       private async Task DoSend()
        {
            await QueuedTask.Run(() =&amp;gt; {
                _message = "first message";
                NotifyPropertyChanged("message");

                System.Threading.Thread.Sleep(1500);
                // do something....
                _message = "second message";
                NotifyPropertyChanged("message");

            });
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jan 2022 14:51:01 GMT</pubDate>
    <dc:creator>mody_buchbinder</dc:creator>
    <dc:date>2022-01-04T14:51:01Z</dc:date>
    <item>
      <title>Send multi messages to Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1129616#M7555</link>
      <description>&lt;P&gt;A quick question before the new year..&lt;/P&gt;&lt;P&gt;I have a button on Dockpane that runs a few geoprocessing tools that takes some time.&lt;/P&gt;&lt;P&gt;I added a label to the dockpane and I would like to send messages as the process move forwards (just like in the gp results window).&lt;/P&gt;&lt;P&gt;After each step I use:&lt;/P&gt;&lt;P&gt;_message = "Mody";&lt;BR /&gt;NotifyPropertyChanged(() =&amp;gt; message);&lt;/P&gt;&lt;P&gt;but the dockpane update only when all the process ends.&lt;/P&gt;&lt;P&gt;Putting a MessageBox after each change makes the dockpane update but it is blocking the process - that is what I try to avoid.&lt;/P&gt;&lt;P&gt;I could not find any way to refresh/sync the dockpane to get the messages while the process continue.&lt;/P&gt;&lt;P&gt;Happy new year&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 07:55:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1129616#M7555</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2021-12-30T07:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Send multi messages to Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1129619#M7556</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried &lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/best-way-to-show-progress/m-p/778671" target="_self"&gt;this (best-way-to-show-progress)&lt;/A&gt;&amp;nbsp;using Dispatcher?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 10:03:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1129619#M7556</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-12-30T10:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Send multi messages to Dockpane</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1130314#M7567</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code below works for me...&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;       private async Task DoSend()
        {
            await QueuedTask.Run(() =&amp;gt; {
                _message = "first message";
                NotifyPropertyChanged("message");

                System.Threading.Thread.Sleep(1500);
                // do something....
                _message = "second message";
                NotifyPropertyChanged("message");

            });
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 14:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/send-multi-messages-to-dockpane/m-p/1130314#M7567</guid>
      <dc:creator>mody_buchbinder</dc:creator>
      <dc:date>2022-01-04T14:51:01Z</dc:date>
    </item>
  </channel>
</rss>

