ArcGIS Pro 2.7 API Reference Guide
ClosePopups() Method

ArcGIS.Desktop.Mapping Namespace > MapView Class > ClosePopups Method : ClosePopups() Method
Close all popup windows whether pinned or not pinned (active). You must be on the UI thread to call this function
Syntax
public void ClosePopups()
Public Overloads Sub ClosePopups() 
Exceptions
ExceptionDescription
Popups cannot be accessed from a thread other than the thread they were created on
Remarks
This includes custom popups and layer popups (if open)
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members
Overload List