Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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