ArcGIS Pro 2.7 API Reference Guide
CloseActivePopup Method

ArcGIS.Desktop.Mapping Namespace > MapView Class : CloseActivePopup Method
Closes the active popup window. You must be on the UI thread to call this function
Syntax
public void CloseActivePopup()
Public Sub CloseActivePopup() 
Exceptions
ExceptionDescription
Popups cannot be accessed from a thread other than the thread they were created on
Remarks
Note: If a popup window is pinned it is no longer considered "active". Use ClosePopups overloads instead
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members