<?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: Reusing same Map and Feature layers in different controls in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reusing-same-map-and-feature-layers-in-different/m-p/394662#M10209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This thread seems related: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/37607-Creating-reusable-UserControls"&gt;http://forums.arcgis.com/threads/37607-Creating-reusable-UserControls&lt;/A&gt;&lt;SPAN&gt;. You can read up on creating custom controls in Silverlight, they talk about use of DependencyProperty and Binding.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Nov 2011 14:16:22 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-11-04T14:16:22Z</dc:date>
    <item>
      <title>Reusing same Map and Feature layers in different controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reusing-same-map-and-feature-layers-in-different/m-p/394661#M10208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a requirement to develop lots of different controls which all include the same Arc.gis.client.map.&amp;nbsp; There is also a feature layer and a graphics layer which will be common to all the different controls.&amp;nbsp; Each control will then add on top of those base layers, having potentially its own graphics layers and/or heatmaplayers.&amp;nbsp;&amp;nbsp; I'd like to come up&amp;nbsp; with a clean way of doing this, so that I don't have to copy and paste code around.&amp;nbsp; I don't want to put the common stuff in all the different controls xaml and code.&amp;nbsp; In the OO world, I'd use a baseclass, put all the common stuff in that and inherit from it, thereby getting the reuse I am after.&amp;nbsp; However, in the Silverlight world (which I am fairly new to), I am not sure what the best approach is to achieve this.&amp;nbsp; I've played around a bit with trying to create a base usercontrol which contains the common stuff and inherit from it, but its proving to be a pain because some stuff is in xaml and some in code.&amp;nbsp; Could I achieve what I am wanting to do by creating a Custom Control which contains the common stuff?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas and suggestions welcome, thanks all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CC&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 18:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reusing-same-map-and-feature-layers-in-different/m-p/394661#M10208</guid>
      <dc:creator>CharlotteCrawford</dc:creator>
      <dc:date>2011-11-03T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reusing same Map and Feature layers in different controls</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reusing-same-map-and-feature-layers-in-different/m-p/394662#M10209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This thread seems related: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/37607-Creating-reusable-UserControls"&gt;http://forums.arcgis.com/threads/37607-Creating-reusable-UserControls&lt;/A&gt;&lt;SPAN&gt;. You can read up on creating custom controls in Silverlight, they talk about use of DependencyProperty and Binding.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 14:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/reusing-same-map-and-feature-layers-in-different/m-p/394662#M10209</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-11-04T14:16:22Z</dc:date>
    </item>
  </channel>
</rss>

