<?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: How to select the sub-layers in a ArcGISDynamicMapServiceLayer for Legend to disp in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-select-the-sub-layers-in-a/m-p/633451#M16285</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want the Legend to display only part of these sub-layers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do that, you have to write some code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hook up an handler to the event 'Legend.Refreshed'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this handler, remove the sublayers you don't want to see in the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates"&gt;legend with template sample &lt;/A&gt;&lt;SPAN&gt;is working this way to remove the "states" item.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Apr 2011 13:02:36 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-04-26T13:02:36Z</dc:date>
    <item>
      <title>How to select the sub-layers in a ArcGISDynamicMapServiceLayer for Legend to display?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-select-the-sub-layers-in-a/m-p/633450#M16284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am developing a silverlight application with a Map and a Legend. The map has a ArcGISDynamicMapServiceLayer with many sub-layers, and I want the Legend to display only part of these sub-layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I haven't found how to do that. I tried the LayerIDs property of the Legend control, but I could not make it work for the sub-layers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; How can I make it work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My development environment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- .NET 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- C# and Visual Studio 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- Silverlight 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- ESRI ArcGIS API for Microsoft Silverlight/WPF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-- ArcGIS server 10.01 map services&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 21:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-select-the-sub-layers-in-a/m-p/633450#M16284</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-20T21:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to select the sub-layers in a ArcGISDynamicMapServiceLayer for Legend to disp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-select-the-sub-layers-in-a/m-p/633451#M16285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want the Legend to display only part of these sub-layers.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do that, you have to write some code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hook up an handler to the event 'Legend.Refreshed'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In this handler, remove the sublayers you don't want to see in the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LegendWithTemplates"&gt;legend with template sample &lt;/A&gt;&lt;SPAN&gt;is working this way to remove the "states" item.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:02:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-select-the-sub-layers-in-a/m-p/633451#M16285</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-04-26T13:02:36Z</dc:date>
    </item>
  </channel>
</rss>

