ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapTrayButton Class / IsVisibleOnView Method

In This Topic
    IsVisibleOnView Method (MapTrayButton)
    In This Topic
    Gets whether or not this TrayButton is visible in the tray for the current Pane
    Syntax
    public override bool IsVisibleOnView()
    Public Overrides Function IsVisibleOnView() As Boolean

    Return Value

    True (the default) this TrayButton should be displayed. False, this TrayButton should be hidden
    Remarks

    A TrayButton implementation can determine visibility based on the type of view within the current pane.

    The tray will use this property at certain times, to determine if this TrayButton should be visible.

    For a Map pane, this is a straightforward process - IsVisible will be used after the Pane is loaded.

    For a Layout pane, IsVisible will also be used any time that a MapFrame is activated or deactivated.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also