Ok, I will try to explain my situation more clearly. I was in a hurry yesterday... 🙂
I am working with the Sivlerlight Builder to generate my map contents and as a framework, and modifying builit in controls as needed.
One of them is the Map Contents (or toc) control.
When I define the map service to have group layers and the feature layers organized accordingly underneath them, and I browse to this service to build my map using the builder, then I get a map structure which when I bind to the legend control I get the hierarchy I want. But I lose the clustering for the point feature layers. This is because the builder doesn't seem to let me configure the feature layers that are organized under group layers to have clustering. I only have access to these feature layers from the builder to enable clusterring for them if I do not put them under the group layers.
So I seem to have two options: one is to return a flat structure from the map service and try to reorganize them on the client side (the legend control) to have hierarchy, or return the hiearchy with groups from the map service and enable clustering on the client side for the feature layers of interest. But I noticed that, in the latter case, the MapApplication.Current.Map.Layers structure has the topographic layer and the ArcGISDynamicMapServiceLayer and all of the map/feature layers beneath it as "LayerInfo" object and not "Layer". So I don't have access to the Clusterer object. (Btw, is there a third option where I can reorganize the MapApplication.Current.Map.Layers data object itself in the code before binding the Map to the legend control, i.e. add in group layers at this point?)
I hope my request made sense. Btw, I am sort of new to this Silverlight API so I am trying rapidly learning things as going.
Thanks.