ArcGIS Pro 2.7 API Reference Guide
ShowCustomPopup(IEnumerable<PopupContent>) Method
Example 

ArcGIS.Desktop.Mapping Namespace > MapView Class > ShowCustomPopup Method : ShowCustomPopup(IEnumerable<PopupContent>) Method
The content to be displayed in the pop-up.
Show a custom pop-up. This method must be called on the UI thread.
Syntax
public void ShowCustomPopup( 
   IEnumerable<PopupContent> popupContent
)
Public Overloads Sub ShowCustomPopup( _
   ByVal popupContent As IEnumerable(Of PopupContent) _
) 

Parameters

popupContent
The content to be displayed in the pop-up.
Exceptions
ExceptionDescription
Popups must be created on the UI thread
Example
Show a custom pop-up.
public void ShowCustomPopup()
{
  //Get the active map view.
  var mapView = MapView.Active;
  if (mapView == null)
    return;

  //Create custom popup content
  var popups = new List<PopupContent>();
  popups.Add(new PopupContent("<b>This text is bold.</b>", "Custom tooltip from HTML string"));
  popups.Add(new PopupContent(new Uri("http://www.esri.com/"), "Custom tooltip from Uri"));
  
  mapView.ShowCustomPopup(popups);
}
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members
Overload List