ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TrayButton Class / ClosePopup Method
Version

ClosePopup Method (TrayButton)
Helper method, provides a way to programmatically close the popup.
Syntax
protected void ClosePopup()
Remarks

Only available if ButtonType is TrayButtonType.PopupToggleButton

This could be useful in the case of popup contents containing a button that, when clicked, opens some other dialog.

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also