<?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: BackgroundWorker and Graphics in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165039#M4071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks D.&amp;nbsp; in hindsight that should have been obvious.&amp;nbsp; and thanks for the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 10:46:35 GMT</pubDate>
    <dc:creator>LanceCrumbliss</dc:creator>
    <dc:date>2012-08-20T10:46:35Z</dc:date>
    <item>
      <title>BackgroundWorker and Graphics</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165037#M4069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To keep the map and the progress bar responsive while generating a couple hundred point graphics in code-behind with a handful of calculated attributes, I'm trying to do it in a background worker thread using the backgroundworker class.&amp;nbsp; However, even this single line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Dim g As New Graphic&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as the first and only line in the RunWorkerAsync handler, a cross thread error is generated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the backgroundworker class in other ESRI silverlight projects and it's really handy.&amp;nbsp; However, this is the first time trying to generate graphics.&amp;nbsp; Is this just not possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 02:21:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165037#M4069</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2012-08-20T02:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: BackgroundWorker and Graphics</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165038#M4070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a graphic contains an UI element, it needs to be created in the UI thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have lot of calculated attributes, you can do it in a background thread but you need to store the results in an intermediate structure. Then you need to come back to the UI thread to create the graphics.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 08:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165038#M4070</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2012-08-20T08:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: BackgroundWorker and Graphics</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165039#M4071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks D.&amp;nbsp; in hindsight that should have been obvious.&amp;nbsp; and thanks for the idea.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 10:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/backgroundworker-and-graphics/m-p/165039#M4071</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2012-08-20T10:46:35Z</dc:date>
    </item>
  </channel>
</rss>

