Skip to main content
A newer version of this page is available. .
All docs
V20.2

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.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public static bool IsEnabled { get; set; }

Property Value

Type Description
Boolean

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

Remarks

DevExpress controls clear UI Automation peers and events to eliminate the performance impact 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