Hello. I am trying to mimic something I have setup in Arc10.6 - ArcObjects to ArcPro 2.2 - ArcPro SDK and am having a hard time finding what I am looking for. Basically, I am trying to change the visibility of different group layers in the TOC. With ArcObjects I was able to use ICompositeLayer to easily get into the various group layers. Now... I'm sort of at a loss. I tried
MapView.Active.Map.Layers
AND
MapView.Active.Map.GetLayersAsFlattenedList().OfType<GroupLayer>()
Just not sure I'm using it correctly as it only gets me to the first level of grouplayers. Maybe I can just use the GroupLayer class?
The common structure of my group layers are - Group A > Group B > Group C > FeatureLayer.
Any tips or documentation for setting the visibility of a group layer would be greatly appreciated!