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

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

    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

    See Also