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

MapView Property (MapTrayButton)
Gets the associated view as a MapView.
Syntax
protected MapView MapView {get;}

Property Value

The associated MapView
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