Back to Devexpress

WindowsFormsSettings.UseUIAutomation Property

windowsforms-devexpress-dot-xtraeditors-dot-windowsformssettings-bc337c1f.md

latest3.8 KB
Original Source

WindowsFormsSettings.UseUIAutomation Property

Gets or sets whether DevExpress controls should use legacy Microsoft Active Accessibility (MSAA) or UIAutomation. See this link for more information on both technologies: Microsoft Active Accessibility and UI Automation Compared.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.Utils.v25.2.dll

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

Declaration

csharp
public static DefaultBoolean UseUIAutomation { get; set; }
vb
Public Shared Property UseUIAutomation As DefaultBoolean

Property Value

TypeDescription
DefaultBoolean

true if DevExpress controls should use UIAutomation patterns; otherwise, false.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

When the UseUIAutomation property is set to DefaultBoolean.True, most commonly-used DevExpress controls support UIAutomation patterns recommended by Microsoft (see this topic for more details: Control Types and Their Supported Control Patterns).

Note

Minimum supported client : Windows 10, version 1709 (desktop apps | UWP apps) Minimum supported server : Windows Server 2016 (desktop apps | UWP apps)

Read the following Microsoft topic for additional information: Requirements.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UseUIAutomation property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-app-ui-automation-testing/CS/UIAutomationTestingExample/Program.cs#L13

csharp
static void Main() {
    WindowsFormsSettings.UseUIAutomation = DefaultBoolean.True;
    Application.EnableVisualStyles();

winforms-app-ui-automation-testing/VB/UIAutomationTestingExample/Program.vb#L15

vb
Sub Main()
    WindowsFormsSettings.UseUIAutomation = DefaultBoolean.True
    Call Application.EnableVisualStyles()

See Also

WindowsFormsSettings Class

WindowsFormsSettings Members

DevExpress.XtraEditors Namespace