ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / PopupContent Class / PopupContent Constructor / PopupContent Constructor(Uri,String)
Uri of the html content to display in the pop-up.
Text displayed in the title bar of the pop-up.
Example

In This Topic
    PopupContent Constructor(Uri,String)
    In This Topic
    Initialize a new instance of PopupContent.
    Syntax
    public PopupContent( 
       Uri htmlURI,
       string title
    )
    Public Function New( _
       ByVal htmlURI As Uri, _
       ByVal title As String _
    )

    Parameters

    htmlURI
    Uri of the html content to display in the pop-up.
    title
    Text displayed in the title bar of the pop-up.
    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 11, Windows 10, Windows 8.1

    See Also