<?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 Scale Dependent Sublayers On/Off Difficulty in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/scale-dependent-sublayers-on-off-difficulty/m-p/121535#M356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe someone can suggest an easier way of doing this.&amp;nbsp; I have scale dependent sublayers for the same layer (symbolized differently depending on scale).&amp;nbsp; I've flagged 'only show visible layers' - so the user only sees one layer at a time.&amp;nbsp; When the user turns the layer on/off the other sublayers (based on the same layer) do not change visibility.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying to create a behavior which would turn the other related sublayers on/off.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGISDynamicMapServiceLayer agsDynamicLayer = (layer as ArcGISDynamicMapServiceLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;agsDynamicLayer.VisibilityChanged += new EventHandler&amp;lt;EventArgs&amp;gt;(ArcGISDynamicMapServiceLayer_SubLyVisibilityChanged);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I tell which of the corresponding sublayers was the one that triggered the EventHandler - so I can flag the other related sublayers?? and how would I change visibility in the code and uncheck the hidden sublayers in the table of contents?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elisabeth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jun 2012 23:17:44 GMT</pubDate>
    <dc:creator>ElisabethvanderLeeuw</dc:creator>
    <dc:date>2012-06-27T23:17:44Z</dc:date>
    <item>
      <title>Scale Dependent Sublayers On/Off Difficulty</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/scale-dependent-sublayers-on-off-difficulty/m-p/121535#M356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe someone can suggest an easier way of doing this.&amp;nbsp; I have scale dependent sublayers for the same layer (symbolized differently depending on scale).&amp;nbsp; I've flagged 'only show visible layers' - so the user only sees one layer at a time.&amp;nbsp; When the user turns the layer on/off the other sublayers (based on the same layer) do not change visibility.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been trying to create a behavior which would turn the other related sublayers on/off.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGISDynamicMapServiceLayer agsDynamicLayer = (layer as ArcGISDynamicMapServiceLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;agsDynamicLayer.VisibilityChanged += new EventHandler&amp;lt;EventArgs&amp;gt;(ArcGISDynamicMapServiceLayer_SubLyVisibilityChanged);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I tell which of the corresponding sublayers was the one that triggered the EventHandler - so I can flag the other related sublayers?? and how would I change visibility in the code and uncheck the hidden sublayers in the table of contents?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Elisabeth&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 23:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/scale-dependent-sublayers-on-off-difficulty/m-p/121535#M356</guid>
      <dc:creator>ElisabethvanderLeeuw</dc:creator>
      <dc:date>2012-06-27T23:17:44Z</dc:date>
    </item>
  </channel>
</rss>

