Skip to main content
All docs
V24.1

ClearAutomationEventsHelper.IsEnabled Property

Gets or sets whether the ClearAutomationEventsHelper should block automation events to enhance application performance.

Namespace: DevExpress.Xpf.Core

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public static bool IsEnabled { get; set; }

Property Value

Type Default Description
Boolean true

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

Remarks

DevExpress controls clear UI Automation peers and events to avoid the impact on performance in applications that do not rely on UI Automation. However, DevExpress controls do not clear UI Automation peers and events if the system uses Narrator or the Screen Reader Parameter is set.

If you wish 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