ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Core Namespace / ICatalogWindow Interface / IsActiveWindow Property
Example

In This Topic
    IsActiveWindow Property
    In This Topic
    Gets whether the catalog dock pane is the active window or not
    Syntax
    bool IsActiveWindow {get;}
    ReadOnly Property IsActiveWindow As Boolean

    Property Value

    True if the catalog dock pane is the active window
    Remarks
    The catalog dock pane must be the active window in order to set the CatalogContentType. See also SetContentTypeAsync and SetSecondaryPortalContentTypeAsync
    Example
    Check if the Catalog Window is the active window
    var catalogWindow = Project.GetCatalogPane() as ICatalogWindow;
    if (catalogWindow.IsActiveWindow)
    {
        //TODO - query/change catalog window content
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also