<?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 Control layers shown in Legend in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71615#M1743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map and I attached a Legend object to it by using the binding element. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Legend Grid.Column="1" Name="legend1" Map="{Binding ElementName=map1}" LayerItemsMode="Tree" ShowOnlyVisibleLayers="False" FontSize="11"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is all fine however there is a specific layer that we add at run time and we do not want that layer showing in the Legend. Is there a way to control what layers show at any given point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 18:24:30 GMT</pubDate>
    <dc:creator>LuisGarcia2</dc:creator>
    <dc:date>2013-02-21T18:24:30Z</dc:date>
    <item>
      <title>Control layers shown in Legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71615#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a map and I attached a Legend object to it by using the binding element. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;esri:Legend Grid.Column="1" Name="legend1" Map="{Binding ElementName=map1}" LayerItemsMode="Tree" ShowOnlyVisibleLayers="False" FontSize="11"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is all fine however there is a specific layer that we add at run time and we do not want that layer showing in the Legend. Is there a way to control what layers show at any given point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 18:24:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71615#M1743</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-02-21T18:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Control layers shown in Legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71616#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Never mind, I found it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;this.legend1.LayerItems.RemoveAt(myPosition);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 18:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71616#M1744</guid>
      <dc:creator>LuisGarcia2</dc:creator>
      <dc:date>2013-02-21T18:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Control layers shown in Legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71617#M1745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alternatively, for the layers you don't want to see in the legend, you can set the flag ShowLegend to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2013 06:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/control-layers-shown-in-legend/m-p/71617#M1745</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-02-22T06:37:01Z</dc:date>
    </item>
  </channel>
</rss>

