hi! I'm trying to get rid of sublayers from the ESRI services in my legend using the exact same code that's in the "Legend with Templates" sample, but it isn't working. The services with one sublayer are having that sublayer removed, but there's another service (ESRI's World_Imagery service) with four sublayers and it's only getting rid of one of them (World Imagery). It appears that the other three sublayers in that service aren't in the e.LayerItem.LayerItems collection. Code is below. Thanks for any help! Dan 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 ((layerItemVM.Label == "USA Topo Maps") || (layerItemVM.Label == "World Street Map") || (layerItemVM.Label == "World Imagery") || (layerItemVM.Label == "Low Resolution 15m Imagery") || (layerItemVM.Label == "High Resolution 60cm Imagery") || (layerItemVM.Label == "High Resolution 30cm Imagery")) removeLayerItemVM = layerItemVM; if (removeLayerItemVM != null) e.LayerItem.LayerItems.Remove(removeLayerItemVM); } } else { e.LayerItem.IsExpanded = false; } }