<?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: Problem with visibility of layers in legend in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198619#M4904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;P.S. In&amp;nbsp; ArcGIS REST Services Directory all&amp;nbsp; published raster layers has - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Default Visibility: true &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2014 03:32:26 GMT</pubDate>
    <dc:creator>AnatoliiTerentiev</dc:creator>
    <dc:date>2014-02-11T03:32:26Z</dc:date>
    <item>
      <title>Problem with visibility of layers in legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198618#M4903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Gurus!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I began working with the API and ran into a problem. In ESRIStandardMapApplication I replaced topo layer with my own topo layer. And visibility of the layers when run the program does not match the visibility of layers in the map , which I publish. How to fix the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. Switching visibility of layers with the help of checkboxes in the legend tree work normally after that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;xaml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:Legend x:Name="Legend" Map="{Binding ElementName=Map}" ShowOnlyVisibleLayers="False" Refreshed="Legend_Refreshed" LayerItemsMode="Tree" Style="{StaticResource LegendStyle1}" LayerTemplate="{StaticResource My_LayerTemplate}" /&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;In Legend_Refreshed I only work with expanded property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 11:28:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198618#M4903</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-02-10T11:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with visibility of layers in legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198619#M4904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;P.S. In&amp;nbsp; ArcGIS REST Services Directory all&amp;nbsp; published raster layers has - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Default Visibility: true &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 03:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198619#M4904</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-02-11T03:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with visibility of layers in legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198620#M4905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought that the visibility of the property associated with Layer.Visible map layer, but it turned out that it is associated with the property layerItemVM.IsEnabled. I solved the problem by replacing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}"/&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;CheckBox Content="{Binding Label}" IsChecked="{Binding Layer.Visible, Mode=TwoWay}"/&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in LayerItemTemplate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&amp;lt;DataTemplate x:Key="My_LayerTemplate"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;lt;CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/StackPanel&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/DataTemplate&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't anybody say where I can read about how layerItemVM.IsEnabled formed from the map layers properties?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 06:03:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198620#M4905</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2014-02-11T06:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with visibility of layers in legend</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198621#M4906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Can't anybody say where I can read about how layerItemVM.IsEnabled formed from the map layers properties?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For a layer, layerItemVM.IsEnabled represents the layer.Visible property so "{Binding IsEnabled, Mode=TwoWay}" should be equivalent to "{Binding Layer.Visible, Mode=TwoWay}" for the layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However layerItemVM.IsEnabled is more generic since it can manage the sublayer visibility as well (for the layer that supports changing the sublayer visibilities such as a non cached ArcGISDynamicMapServiceLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case your layer doesn't support changing sublayer visibilities (e.g an ArcGISTiledMapServiceLayer), changing layerItemVM.IsEnabled has no effect while changing Layer.Visible toggles the whole&amp;nbsp; layer visibility i.e the visibility of all sublayers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 13:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/problem-with-visibility-of-layers-in-legend/m-p/198621#M4906</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-02-12T13:16:07Z</dc:date>
    </item>
  </channel>
</rss>

