Skip to main content
All docs
V25.1
  • ClearAutomationEventsHelper.IsEnabled Property

    Gets or sets whether the ClearAutomationEventsHelper should block automation events to improve application performance. This is a dependency property.

    Namespace: DevExpress.Xpf.Core

    Assembly: DevExpress.Xpf.Core.v25.1.dll

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static bool IsEnabled { get; set; }

    Property Value

    Type Description
    Boolean

    true to block automation events and improve application performance; otherwise false.

    Remarks

    DevExpress controls remove UI Automation peers and events to improve performance when UI Automation is not needed. However, they keep them if Narrator is running or the Screen Reader parameter is enabled.

    The IsEnabled property is set to false automatically in the following cases:

    If you need to use the UI Automation framework without screen readers, set the IsEnabled property to false in the application constructor or any other code that is invoked before DevExpress controls are loaded:

    public App() {  
        DevExpress.Xpf.Core.ClearAutomationEventsHelper.IsEnabled = false;  
    }  
    
    See Also