<?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: Graphics Layer and Databinding? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293937#M7573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think a graphic layer is nothing but a kind of collection of objects. Here, I mean to say that create one observablecollection&amp;lt;GraphicLayer&amp;gt; kind of object in your viewmodel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In view you should set some itemsource or Datacontext property to this collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know the exact workaround for this, but this should work if you have properly architected MVVM pattern.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Apr 2010 07:43:50 GMT</pubDate>
    <dc:creator>AnilDhiman</dc:creator>
    <dc:date>2010-04-30T07:43:50Z</dc:date>
    <item>
      <title>Graphics Layer and Databinding?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293936#M7572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map with a graphics layer and a list of flight lines from GPS units. Within the extent of a given area I can have approximately 2k to 5k individual points and about 200 flight lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right now, for each line I perform the following operations in a loop:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Create a Client.Geometry.PointCollection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Add my line points to the PointCollection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Create a Client.Geometry.Polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Add my PointCollection to the Polyline.Paths collection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Create a new Graphic and set it's symbol to the appropriate line symbol&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Set the Graphic's symbol to my PolLine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Add the new Graphic to the Graphics Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works pretty well but I'd prefer to databind it to values in my ViewModel. Does anyone know how to accomplish this with as little work as possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 00:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293936#M7572</guid>
      <dc:creator>JimJackson</dc:creator>
      <dc:date>2010-04-30T00:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Layer and Databinding?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293937#M7573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think a graphic layer is nothing but a kind of collection of objects. Here, I mean to say that create one observablecollection&amp;lt;GraphicLayer&amp;gt; kind of object in your viewmodel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In view you should set some itemsource or Datacontext property to this collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know the exact workaround for this, but this should work if you have properly architected MVVM pattern.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 07:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293937#M7573</guid>
      <dc:creator>AnilDhiman</dc:creator>
      <dc:date>2010-04-30T07:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics Layer and Databinding?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293938#M7574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What do you mean by databinding ? do you actually whant to retrieve the values from a database ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 09:40:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/graphics-layer-and-databinding/m-p/293938#M7574</guid>
      <dc:creator>JohanFerguson</dc:creator>
      <dc:date>2010-04-30T09:40:09Z</dc:date>
    </item>
  </channel>
</rss>

