nested goups with layers

Developer
Sep 19, 2011 at 1:15 AM

Hi Team,

What is the best way to create nested groups containing layers? I can create groups within groups with the following code:

                            NewGrp = new MapGroup {LegendText = newGrpName, IsVisible = false, ParentMapFrame = map1.MapFrame};
                            ExisitingGrp.Add(NewGrp);
Is this correct?
Thanks!