ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapView Class / ShowPopup Method / ShowPopup(MapMember,Int64) Method
The MapMember containing the feature.
The object id of the feature.
Example

In This Topic
    ShowPopup(MapMember,Int64) Method
    In This Topic
    Show a pop-up for a feature. This method must be called on the UI thread.
    Syntax
    public void ShowPopup( 
       MapMember mapMember,
       long featureID
    )
    Public Overloads Sub ShowPopup( _
       ByVal mapMember As MapMember, _
       ByVal featureID As Long _
    ) 

    Parameters

    mapMember
    The MapMember containing the feature.
    featureID
    The object id of the feature.
    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

    ArcGIS Pro version: 3 or higher.
    See Also