I have multiple map frames in the Contents pane in ArcGIS Pro and I need to perform separate actions on each of them. Right now when I am adding a second map frame, I am unable to add the actions on the first map frame. I need to explicitly select the first map frame from ArcGIS Pro and then perform actions.
I need something like if I want to perform action on first map frame then it gets selected from C# code and then I can add layers on that.
Please guide us how we can do that.