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

In This Topic
    Pane Property
    In This Topic
    Gets the Pane that contains this TrayButton's Tray.
    Syntax
    protected Pane Pane {get;}
    Protected ReadOnly Property Pane As Pane

    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