ArcGIS Pro 2.7 API Reference Guide
ActivateMapFrameEvent Class
Members  Example 

ArcGIS.Desktop.Layouts.Events Namespace : ActivateMapFrameEvent Class
Occurs when a MapFrame is activated or deactivated.
Object Model
ActivateMapFrameEvent ClassSubscriptionToken ClassSubscriptionToken Class
Syntax
Remarks
Reference ActivateMapFrameEventArgs to get a list of arguments.
Example
//Report the event args when a map frame is activated or deactivated.

ArcGIS.Desktop.Layouts.Events.ActivateMapFrameEvent.Subscribe((args) =>
{
  System.Windows.MessageBox.Show("ActiveMapFrameEvent:" +
  Environment.NewLine +
  "   arg IsActivated: " + args.IsActivated.ToString() +
  Environment.NewLine +
  "   arg Layout: " + args.Layout.Name +
  Environment.NewLine +
  "   arg MapFrame: " + args.MapFrame.Name);
});
Inheritance Hierarchy

System.Object
   ArcGIS.Core.Events.EventBase
      ArcGIS.Core.Events.CompositePresentationEvent<TPayload>
         ArcGIS.Desktop.Layouts.Events.ActivateMapFrameEvent

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ActivateMapFrameEvent Members
ArcGIS.Desktop.Layouts.Events Namespace