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

In This Topic
    MapView Property (MapTrayButton)
    In This Topic
    Gets the associated view as a MapView.
    Syntax
    protected MapView MapView {get;}
    Protected ReadOnly Property MapView As MapView

    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