| Exception | Description |
|---|---|
| System.InvalidOperationException | Needs to run on the GUI thread |
| System.InvalidOperationException | Layout view must be the active view |
{
//Deactivate any activated map frame
//Note: we are on the UI thread!
layoutView.DeactivateMapFrame();//no-op if nothing activated
//or - check if a map frame is activated first...
if (layoutView.ActivatedMapFrame != null)
//Note: we are on the UI thread!
layoutView.DeactivateMapFrame();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)