<?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: DBROUX's legend reoganize sample in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605028#M15507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I answered to a similar question in this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/104987-Interactive-Legend-check-box-bindings"&gt;thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Apr 2014 21:13:37 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2014-04-02T21:13:37Z</dc:date>
    <item>
      <title>DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605027#M15506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dbroux, I've used your sample code here &lt;/SPAN&gt;&lt;A href="http://broux.dominique.free.fr/Silverlight/InteractiveSDK/Default.htm#LegendReorganize"&gt;http://broux.dominique.free.fr/Silverlight/InteractiveSDK/Default.htm#LegendReorganize&lt;/A&gt;&lt;SPAN&gt; in the past.&amp;nbsp; It works fine.&amp;nbsp; What I'd like to do now is move a FeatureLayer that is the top layer in the map (for mildly complex layer order visibility reasons) into a Group in the Legend.&amp;nbsp; I can do that, but of course the Visibility of the GroupLayer is not respected by the "moved" FeatureLayer. How can I make the FeatureLayer respect the Visibility property of the GroupLayer it is "moved" to in the Legend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached shows the GroupLayer after reorganization.&amp;nbsp; I've not attached the map, but as a result of the Visibility of the GroupLayer, the bottom three layers do not render (correct behavior), however the top one - "Sea Birds" does (correct, but not desired).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 16:46:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605027#M15506</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2014-04-02T16:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605028#M15507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I answered to a similar question in this &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/104987-Interactive-Legend-check-box-bindings"&gt;thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 21:13:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605028#M15507</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2014-04-02T21:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605029#M15508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I answered to a similar question in this &lt;A href="http://forums.arcgis.com/threads/104987-Interactive-Legend-check-box-bindings"&gt;thread&lt;/A&gt;.&lt;BR /&gt;Hope this helps.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Dbroux.&amp;nbsp; However, there seem to be differences between the GroupLayer type and types that impliment ISubLayerVisibilitySupport (Like ArcGISDynamicMapServiceLayer).&amp;nbsp; I can't seem to find the right combination of handlers that mimic the functionality of an unmodified GroupLayer (all childlayers of the group respecting the visibility of the parent grouplayer).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 19:31:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605029#M15508</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2014-04-07T19:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605030#M15509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Dbroux.&amp;nbsp; However, there seem to be differences between the GroupLayer type and types that impliment ISubLayerVisibilitySupport (Like ArcGISDynamicMapServiceLayer).&amp;nbsp; I can't seem to find the right combination of handlers that mimic the functionality of an unmodified GroupLayer (all childlayers of the group respecting the visibility of the parent grouplayer).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first glance, I would say that you have only to subscribe to GroupLayer.PropertyChanged event and no more worry about ISubLayerVisibilitySupport.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; _groupLayerItem .Layer.PropertyChanged += (s, evt) =&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (evt.PropertyName == "Visible")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateFeatureLayerVisibility();
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605030#M15509</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T01:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605031#M15510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That would seem to tie the visibility of the Featurelayer directly to the visibility of GroupLayer.&amp;nbsp; In other words, toggling the GroupLayer on would turn on the FeatureLayer,even if the FeatureLayer is set to no visible.&amp;nbsp; Further, if the FeatureLayer is toggled, it doesn't respect the GroupLayer visibility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; Private Sub UpdateFeatureLayerVisibility(sender As Layer)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
If _seaBirdsLivm IsNot Nothing AndAlso _environtmentalGroupLayerLivm IsNot Nothing Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _seaBirdsLivm.IsEnabled = _environtmentalGroupLayerLivm.Layer.Visible AndAlso _environtmentalGroupLayerLivm.IsEnabled
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub




&amp;nbsp;&amp;nbsp;&amp;nbsp; Private _seaBirdsHasBeenReordered As Boolean
&amp;nbsp;&amp;nbsp;&amp;nbsp; Private _environtmentalGroupLayerLivm As LayerItemViewModel
&amp;nbsp;&amp;nbsp;&amp;nbsp; Private _seaBirdsLivm As LayerItemViewModel
&amp;nbsp;&amp;nbsp;&amp;nbsp; Private Sub esriLegend_Refreshed(sender As Object, e As Toolkit.Legend.RefreshedEventArgs)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.LayerItem.Label = "Sea Birds" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _seaBirdsLivm = e.LayerItem
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.LayerItem.LayerItems = Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Not _seaBirdsHasBeenReordered Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _environtmentalGroupLayerLivm = esriLegend.LayerItems.FirstOrDefault(Function(l) l.Label = "Environmental Layers")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If _environtmentalGroupLayerLivm IsNot Nothing AndAlso _environtmentalGroupLayerLivm.LayerItems IsNot Nothing AndAlso _seaBirdsLivm IsNot Nothing Then


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler _environtmentalGroupLayerLivm.Layer.PropertyChanged,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sub(s As Object, evt As PropertyChangedEventArgs)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If evt.PropertyName = "Visible" Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateFeatureLayerVisibility(CType(s, Layer))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _environtmentalGroupLayerLivm.LayerItems.Insert(0, _seaBirdsLivm)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; esriLegend.LayerItems.Remove(_seaBirdsLivm)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _seaBirdsHasBeenReordered = True
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If _seaBirdsLivm IsNot Nothing Then esriLegend.LayerItems.Remove(_seaBirdsLivm)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605031#M15510</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2021-12-12T01:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605032#M15511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hm, maybe not possible/practical?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 10:39:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605032#M15511</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2014-04-17T10:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605033#M15512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hm, maybe not possible/practical?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should get something working 'à la google' with code like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;private LayerItemViewModel _featureLayerItem;
private LayerItemViewModel _groupLayerItem;
private void Legend_Refreshed(object sender, Legend.RefreshedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var legend = sender as Legend;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (legend == null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;

&amp;nbsp;&amp;nbsp;&amp;nbsp; // initialize group layer item once
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_groupLayerItem == null)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _groupLayerItem = legend.LayerItems.FirstOrDefault(l =&amp;gt; l.Layer is GroupLayer); // here we suppose there is only one group layer but might be based on ID as well
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (_groupLayerItem != null)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _groupLayerItem.PropertyChanged += GroupLayerItem_PropertyChanged;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.LayerItem.Layer is FeatureLayer &amp;amp;&amp;amp; _groupLayerItem != null &amp;amp;&amp;amp; !_groupLayerItem.LayerItems.Contains(e.LayerItem))
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayerItem = e.LayerItem; // store feature layer item
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayerItem.PropertyChanged += FeatureLayerItem_PropertyChanged;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legend.LayerItems.Remove(_featureLayerItem); // remove feature layer from the legend root (else it would be duplicated)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Add feature layer item in the group layer
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _groupLayerItem.LayerItems.Add(_featureLayerItem);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}

void GroupLayerItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // synchronize feature layer visibility on group layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.PropertyName == "IsVisible")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayerItem.Layer.Visible = _groupLayerItem.IsVisible;
}
void FeatureLayerItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // if feature layer item is toggled on, toggle on the group layer as well
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.PropertyName == "IsEnabled" &amp;amp;&amp;amp; _groupLayerItem != null &amp;amp;&amp;amp; ((LayerItemViewModel)sender).IsEnabled)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _groupLayerItem.IsEnabled = true;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That being said, I don't see why you don't set&amp;nbsp; the layers in your map as you want to see them in the legend. But I may miss something.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605033#M15512</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T01:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605034#M15513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks dbroux,&amp;nbsp; I'll see how that works.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That being said, I don't see why you don't set the layers in your map as you want to see them in the legend. But I may miss something.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;i'm&lt;/SPAN&gt;&lt;SPAN&gt; missing something here:&amp;nbsp; the issue is if I set them in the map as I want to see them in the legend, then points will be obscured by polygons.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 11:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605034#M15513</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2014-04-17T11:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605035#M15514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Darn.&amp;nbsp; This doesn't do it either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; The two main drawbacks are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; - Toggling on the GroupLayer turns on the transfered in FeatureLayer, even if the latter is off.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Toggling on the transfered in FeatureLayer turns on the GroupLayer, which is different behavior than the non transfered in FeatureLayers in the GroupLayer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:11:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605035#M15514</guid>
      <dc:creator>LanceCrumbliss</dc:creator>
      <dc:date>2014-04-17T12:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: DBROUX's legend reoganize sample</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605036#M15515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; - Toggling on the GroupLayer turns on the transfered in FeatureLayer, even if the latter is off.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's why I said 'a la google'. Turning on/off the group layer, turns the sublayers as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can change this behavior in GroupLayerItem_PropertyChanged. However, for consistency, we have still to turn off the feature layer when you turn off the group layer (else the FL would be visible while, in the legend, it appears inside a non visible group layer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;void GroupLayerItem_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; // synchronize feature layer visibility on group layer
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.PropertyName == "IsVisible" &amp;amp;&amp;amp; !_groupLayerItem.IsVisible)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _featureLayerItem.Layer.Visible = _groupLayerItem.IsVisible;
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt; - Toggling on the transfered in FeatureLayer turns on the GroupLayer, which is different behavior than the non transfered in FeatureLayers in the GroupLayer.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You could change this behavior in FeatureLayerItem_PropertyChanged (actually by removing all the code) but you would run into the same visual inconsistency as in previous case: FL visible that seems to be inside a non visible group layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/dbroux-s-legend-reoganize-sample/m-p/605036#M15515</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T01:56:46Z</dc:date>
    </item>
  </channel>
</rss>

