ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / ShowPopup Method / ShowPopup(MapMember,Int64,PopupDefinition) Method
The MapMember containing the feature.
The object id of the feature.
A class to set additional properties for the popup. When set to null, default values will be used.
Example

ShowPopup(MapMember,Int64,PopupDefinition) Method
Show a pop-up for a feature. This method must be called on the UI thread.
Syntax

Parameters

mapMember
The MapMember containing the feature.
featureID
The object id of the feature.
popupDef
A class to set additional properties for the popup. When set to null, default values will be used.
Exceptions
ExceptionDescription
Popups must be created on the UI thread
Example
Show A Pop-up For A Feature
public void ShowPopup(MapMember mapMember, long objectID)
{
  //Get the active map view.
  var mapView = MapView.Active;
  if (mapView == null)
    return;

  mapView.ShowPopup(mapMember, objectID);
}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.5 or higher.
See Also