<?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 Method to know if the map Rendered in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423931#M10915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application I need to get a new image of the my map every time it is updated (zoom or pan funcionalities). I'm using the Map.ExtentChanged Event, but Sometimes the Image is shot before the Whole map is Shown. Is there any event or property that could show me the exact moment that the map finishes rendering?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;MyMap.ExtentChanged += (s, e) =&amp;gt;
{
 WriteableBitmap imagem = new WriteableBitmap(MyMap, null);
 mapImagePreview.Source = imagem;
 mapImagePreview.HorizontalAlignment = HorizontalAlignment.Center;
 mapImagePreview.VerticalAlignment = VerticalAlignment.Center;
 mapImagePreview.Stretch = Stretch.Uniform;
 imagem.Render(MyMap, null);
};&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 16:22:15 GMT</pubDate>
    <dc:creator>jonataspovoas</dc:creator>
    <dc:date>2012-01-25T16:22:15Z</dc:date>
    <item>
      <title>Method to know if the map Rendered</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423931#M10915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application I need to get a new image of the my map every time it is updated (zoom or pan funcionalities). I'm using the Map.ExtentChanged Event, but Sometimes the Image is shot before the Whole map is Shown. Is there any event or property that could show me the exact moment that the map finishes rendering?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;MyMap.ExtentChanged += (s, e) =&amp;gt;
{
 WriteableBitmap imagem = new WriteableBitmap(MyMap, null);
 mapImagePreview.Source = imagem;
 mapImagePreview.HorizontalAlignment = HorizontalAlignment.Center;
 mapImagePreview.VerticalAlignment = VerticalAlignment.Center;
 mapImagePreview.Stretch = Stretch.Uniform;
 imagem.Render(MyMap, null);
};&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423931#M10915</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2012-01-25T16:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Method to know if the map Rendered</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423932#M10916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried running the code inside Dispatcher.BeginInvoke()? I don't know if that will make a difference but I think you can also use either LayoutUpdated or SizeChanged event. &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.layoutupdated%28v=vs.95%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.layoutupdated%28v=vs.95%29.aspx&lt;/A&gt;&lt;SPAN&gt;. You can subscribe to this event only if Map.ExtentChanged.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 16:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423932#M10916</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2012-01-25T16:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Method to know if the map Rendered</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423933#M10917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried running the code inside Dispatcher.BeginInvoke()? I don't know if that will make a difference but I think you can also use either LayoutUpdated or SizeChanged event. &lt;A href="http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.layoutupdated%28v=vs.95%29.aspx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.layoutupdated%28v=vs.95%29.aspx&lt;/A&gt;. You can subscribe to this event only if Map.ExtentChanged.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None of the above worked. I've made some progress since I posted my question. It still need improvement, but using the Map.Progress event managed to get the final view of the map in 80 to 85% of the time, like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;MyMap.Progress += (s, e) =&amp;gt;
{
 if (e.Progress == 100)
 {
&amp;nbsp; WriteableBitmap imagem = new WriteableBitmap(paginaImressaoRetratoA4, null);
&amp;nbsp; this.visualizacaoDaPagina.Source = imagem;
 }
};&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It still bugs some times, showing the map incomplete.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/method-to-know-if-the-map-rendered/m-p/423933#M10917</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2021-12-11T19:08:17Z</dc:date>
    </item>
  </channel>
</rss>

