ArcGIS Pro 3.3 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 using pop-up window properties
    public void ShowPopupWithWindowDef(MapMember mapMember, long objectID)
    {
      if (MapView.Active == null) return;
      // Sample code: https://github.com/ArcGIS/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomIdentify/CustomIdentify.cs
      var topLeftCornerPoint = new System.Windows.Point(200, 200);
      var popupDef = new PopupDefinition()
      {
        Append = true,      // if true new record is appended to existing (if any)
        Dockable = true,    // if true popup is dockable - if false Append is not applicable
        Position = topLeftCornerPoint,  // Position of top left corner of the popup (in pixels)
        Size = new System.Windows.Size(200, 400)    // size of the popup (in pixels)
      };
      MapView.Active.ShowPopup(mapMember, objectID, popupDef);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also