Back to Devexpress

ClearAutomationEventsHelper.IsEnabled Property

wpf-devexpress-dot-xpf-dot-core-dot-clearautomationeventshelper-ab81ddc5.md

latest2.3 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static bool IsEnabled { get; set; }
vb
Public Shared Property IsEnabled As Boolean

Property Value

TypeDescription
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:

csharp
public App() {  
    DevExpress.Xpf.Core.ClearAutomationEventsHelper.IsEnabled = false;  
}
vb
Partial Public Class App  
    Inherits Application  
    Public Sub New()  
    DevExpress.Xpf.Core.ClearAutomationEventsHelper.IsEnabled = False  
    End Sub  
...

See Also

Screen reader parameter MSDN topic

ClearAutomationEventsHelper Class

ClearAutomationEventsHelper Members

DevExpress.Xpf.Core Namespace