<?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 Draw status changed in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/draw-status-changed/m-p/356932#M4202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm working on some offline development and showing the spinner when map draw status changed. When I do window lock and unlock my window then I see that draw status changed event happens only one time, after that it's not executing.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Here is the sample code which I am using.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;private void PgeMapView_DrawStatusChanged(object sender, DrawStatusChangedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; //Update the load status information&lt;BR /&gt; Dispatcher.Invoke(delegate ()&lt;BR /&gt; {&lt;BR /&gt; // Show the activity indicator if the map is drawing&lt;BR /&gt; if (e.Status == DrawStatus.InProgress)&lt;BR /&gt; {&lt;BR /&gt; labelMessage.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; labelMessage.Text = "Loading layers..";&lt;BR /&gt; ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; ProgressSpinner_lyr.Spin = true;&lt;BR /&gt; ProgressSpinner_lyr.Refresh();&lt;/P&gt;&lt;P&gt;//MapStatusProgressBar.IsEnabled = true;&lt;BR /&gt; //MapStatusProgressBar.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; labelMessage.Visibility = System.Windows.Visibility.Collapsed;&lt;BR /&gt; ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Collapsed;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; pgeMapView.DrawStatusChanged -= PgeMapView_DrawStatusChanged;&lt;BR /&gt; pgeMapView.DrawStatusChanged += PgeMapView_DrawStatusChanged;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch (Exception ex)&lt;BR /&gt; {&lt;BR /&gt; string message = ex.Message;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2019 17:56:05 GMT</pubDate>
    <dc:creator>SaurabhGupta1</dc:creator>
    <dc:date>2019-02-08T17:56:05Z</dc:date>
    <item>
      <title>Draw status changed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/draw-status-changed/m-p/356932#M4202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hello,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm working on some offline development and showing the spinner when map draw status changed. When I do window lock and unlock my window then I see that draw status changed event happens only one time, after that it's not executing.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Here is the sample code which I am using.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P&gt;private void PgeMapView_DrawStatusChanged(object sender, DrawStatusChangedEventArgs e)&lt;BR /&gt; {&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; //Update the load status information&lt;BR /&gt; Dispatcher.Invoke(delegate ()&lt;BR /&gt; {&lt;BR /&gt; // Show the activity indicator if the map is drawing&lt;BR /&gt; if (e.Status == DrawStatus.InProgress)&lt;BR /&gt; {&lt;BR /&gt; labelMessage.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; labelMessage.Text = "Loading layers..";&lt;BR /&gt; ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; ProgressSpinner_lyr.Spin = true;&lt;BR /&gt; ProgressSpinner_lyr.Refresh();&lt;/P&gt;&lt;P&gt;//MapStatusProgressBar.IsEnabled = true;&lt;BR /&gt; //MapStatusProgressBar.Visibility = System.Windows.Visibility.Visible;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; labelMessage.Visibility = System.Windows.Visibility.Collapsed;&lt;BR /&gt; ProgressSpinner_lyr.Visibility = System.Windows.Visibility.Collapsed;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; pgeMapView.DrawStatusChanged -= PgeMapView_DrawStatusChanged;&lt;BR /&gt; pgeMapView.DrawStatusChanged += PgeMapView_DrawStatusChanged;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;catch (Exception ex)&lt;BR /&gt; {&lt;BR /&gt; string message = ex.Message;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 17:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/draw-status-changed/m-p/356932#M4202</guid>
      <dc:creator>SaurabhGupta1</dc:creator>
      <dc:date>2019-02-08T17:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Draw status changed</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/draw-status-changed/m-p/356933#M4203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the issue, this is happening when you add the feature table which does not have geometry. Now I am&amp;nbsp;looking how to not add these feature tables&amp;nbsp;on Map while loading GeoDatabase File.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 21:33:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/draw-status-changed/m-p/356933#M4203</guid>
      <dc:creator>SaurabhGupta1</dc:creator>
      <dc:date>2019-02-15T21:33:28Z</dc:date>
    </item>
  </channel>
</rss>

