ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTrayButton Class / Map Property
Version

Map Property (MapTrayButton)
Gets the underlying Map of the associated MapView.
Syntax
protected Map Map {get;}

Property Value

The associated Map
Remarks

Only non-null if this TrayButton has been added to a MapView's Tray.

This may initially be null, as the view is being constructed. Override the TrayButton.OnButtonLoaded method to be told when the view is made available.

Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also