<?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: Legend control: any way to leave some layers from the map out? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478002#M12337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dbroux:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem of setting "ShowOnlyVisibleLayers" is that: if I uncheck the checkbox binded to the visible property of the layer, then then layer will disappear immediately from the table of content, such that I cannot get it back into display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What was the problem with setting 'ShowOnlyVisibleLlayers' to true?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 13:22:36 GMT</pubDate>
    <dc:creator>SuiHuang</dc:creator>
    <dc:date>2011-04-19T13:22:36Z</dc:date>
    <item>
      <title>Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/477999#M12334</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 using a Legend element to list all the layers in a map. However, I don't want the invisible graphic layer to show up in the legend. Is there any way for me to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Following is the code I have now (listing the graphic layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Legend x:Name="Legend" Map="{Binding ElementName=Map}" LayerItemsMode="Flat"&amp;nbsp; ShowOnlyVisibleLayers="False"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:Legend.MapLayerTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CheckBox Content="" IsChecked="{Binding IsEnabled, Mode=TwoWay}" &amp;gt;&amp;lt;/CheckBox&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Label}"&amp;gt;&amp;lt;/TextBlock&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Legend.MapLayerTemplate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/esri:Legend&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/477999#M12334</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-04T18:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478000#M12335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I set the LayerIDs property at the startup, and it works now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Everybody:&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am using a Legend element to list all the layers in a map. However, I don't want the invisible graphic layer to show up in the legend. Is there any way for me to do that?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Following is the code I have now (listing the graphic layer).&lt;BR /&gt;================================================&lt;BR /&gt;&amp;lt;esri:Legend x:Name="Legend" Map="{Binding ElementName=Map}" LayerItemsMode="Flat"&amp;nbsp; ShowOnlyVisibleLayers="False"&amp;gt;&lt;BR /&gt;&amp;lt;esri:Legend.MapLayerTemplate&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;DataTemplate&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;StackPanel Orientation="Horizontal"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;CheckBox Content="" IsChecked="{Binding IsEnabled, Mode=TwoWay}" &amp;gt;&amp;lt;/CheckBox&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;TextBlock Text="{Binding Label}"&amp;gt;&amp;lt;/TextBlock&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/DataTemplate&amp;gt;&lt;BR /&gt;&amp;lt;/esri:Legend.MapLayerTemplate&amp;gt;&lt;BR /&gt;&amp;lt;/esri:Legend&amp;gt;&lt;BR /&gt;================================================&lt;BR /&gt;&lt;BR /&gt; Thank you.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 18:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478000#M12335</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-04T18:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478001#M12336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What was the problem with setting 'ShowOnlyVisibleLlayers' to true?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 07:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478001#M12336</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-04-05T07:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478002#M12337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dbroux:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The problem of setting "ShowOnlyVisibleLayers" is that: if I uncheck the checkbox binded to the visible property of the layer, then then layer will disappear immediately from the table of content, such that I cannot get it back into display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What was the problem with setting 'ShowOnlyVisibleLlayers' to true?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478002#M12337</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-19T13:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478003#M12338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The problem of setting "ShowOnlyVisibleLayers" is that: if I uncheck the checkbox binded to the visible property of the layer, then then layer will disappear immediately from the table of content, such that I cannot get it back into display.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; I agree but what is the difference with setting LayerIds property at startup?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 13:36:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478003#M12338</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-04-26T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Legend control: any way to leave some layers from the map out?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478004#M12339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I agree but what is the difference with setting LayerIds property at startup?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set the LayerIds property at startup, the legend item of the layer will not disappear even if I temporarily make the layer invisible from the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 18:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/legend-control-any-way-to-leave-some-layers-from/m-p/478004#M12339</guid>
      <dc:creator>SuiHuang</dc:creator>
      <dc:date>2011-04-26T18:36:16Z</dc:date>
    </item>
  </channel>
</rss>

