Hello,I am using a modified version of the Showcase template in API 2.4 (SL 4). I have labels from a tiled map service on the map that I would like to add to the legend so the labels can be turned on and off. I have my other layers set up so the tree view is not expanded and everything with them is working correctly. The tiled map service labels come in with all layers expanded and the checkbox to turn them on/off is grayed out. Below is the code I am working with (note "Labels" in the layer ids of the legend are for the tiled map service, "Schools" is a feature layer and "Attendance Areas" is a dynamic layer):MainPage.xaml: <!-- Map legend window --> <userControls:DraggableWindow IsOpen="True" x:Name="MapLegendWindow" Margin="0,165,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Width="305" Height="275" Padding="0" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Title="Map Legend" Background="{StaticResource BaseColor}"> <i:Interaction.Triggers> <i:EventTrigger> <!--<actions:ToggleWindowVisibilityAction />--> <!-- Hide at startup --> </i:EventTrigger> </i:Interaction.Triggers> <esri:Legend x:Name="Legend" Map="{Binding ElementName=MyMap}" LayerIDs="Labels, Schools, Attendance Areas" LayerItemsMode="Flat" ShowOnlyVisibleLayers="False" Refreshed="Legend_Refreshed"/> </userControls:DraggableWindow> </Grid>App.xaml: <Style TargetType="esri:Legend"> <Setter Property="LayerItemsMode" Value="Flat" /> <Setter Property="LayerTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> </StackPanel> </DataTemplate> </Setter.Value> </Setter> <Setter Property="MapLayerTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox Content="{Binding Label}" IsChecked="{Binding IsEnabled, Mode=TwoWay}" IsEnabled="{Binding IsInScaleRange}" > </CheckBox> </StackPanel> </DataTemplate> </Setter.Value> </Setter> </Style> MainPage.xaml.cs: private void Legend_Refreshed(object sender, Legend.RefreshedEventArgs e) { LayerItemViewModel removeLayerItemVM = null; if (e.LayerItem.LayerItems != null) { foreach (LayerItemViewModel layerItemVM in e.LayerItem.LayerItems) { if (layerItemVM.IsExpanded) layerItemVM.IsExpanded = false; } if (removeLayerItemVM != null) e.LayerItem.LayerItems.Remove(removeLayerItemVM); } else { e.LayerItem.IsExpanded = false; } }Thanks!