ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TrayButton Class / Pane Property
Example

Pane Property
Gets the Pane that contains this TrayButton's Tray.
Syntax
protected Pane Pane {get;}

Property Value

The associated Pane.
Remarks
When this TrayButton is added to the tray of a MapView, you can obtain the MapView using the following coding pattern.
Example
var mapPane = Pane as IMapPane;
var mapView = mapPane?.MapView;
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also