ArcGIS Pro 2.8 API Reference Guide
CreateMapPaneAsync(PaneCollection,CIMMapView) Method

ArcGIS.Desktop.Core Namespace > FrameworkExtender Class > CreateMapPaneAsync Method : CreateMapPaneAsync(PaneCollection,CIMMapView) Method
The project's collection of panes returned from ArcGIS.Desktop.Framework.FrameworkApplication.Panes.
Definition of a ArcGIS.Desktop.Mapping.MapView.
Create and activate a new map pane which is a container for a ArcGIS.Desktop.Mapping.MapView.
Syntax
public static Task<IMapPane> CreateMapPaneAsync( 
   PaneCollection paneCollection,
   CIMMapView mapView
)
Public Overloads Shared Function CreateMapPaneAsync( _
   ByVal paneCollection As PaneCollection, _
   ByVal mapView As CIMMapView _
) As Task(Of IMapPane)

Parameters

paneCollection
The project's collection of panes returned from ArcGIS.Desktop.Framework.FrameworkApplication.Panes.
mapView
Definition of a ArcGIS.Desktop.Mapping.MapView.

Return Value

A Task returning a map pane.
Remarks
When a new map pane is created the ArcGIS.Desktop.Mapping.MapView needs to initialize before any operations are performed on it. Be sure to await the Task to ensure the view has finished its initialization before performing any interactive or navigation operations on the resulting ArcGIS.Desktop.Mapping.MapView.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

FrameworkExtender Class
FrameworkExtender Members
Overload List