ArcGIS Pro 3.7 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 Shared ReadOnly Property IsBusy As Boolean
    public static bool IsBusy {get;}
    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 initializing.   
    
      // 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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also