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

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

ArcGIS Pro version: 3 or higher.
See Also