ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Framework Namespace / FrameworkApplication Class / IsBusy Property
Example

In This Topic
    IsBusy Property (FrameworkApplication)
    In This Topic
    Gets a boolean value of true indicating the application is currently busy.
    Syntax
    public static bool IsBusy {get;}
    Public Shared ReadOnly Property IsBusy As Boolean
    Remarks

    The application is considered busy if a task is currently running on the main worker thread or any pane or dock pane reports that it is initializing or busy.

    Example
    Determine if the application is busy
    // The application is considered busy if a task is currently running on the main worker thread or any 
    // pane or dock pane reports that it is busy or intiializing.   
    
    // Many Pro styles (such as Esri_SimpleButton) ensure that a button is disabled when FrameworkApplication.IsBusy is true
    // You would use this property to bind to the IsEnabled property of a control (such as a listbox) on a dockpane or pane in order
    // to disable it from user interaction while the application is busy. 
    bool isbusy = FrameworkApplication.IsBusy;
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also