Breaking Change T1077760
Visible to All Users

The UseTextForAccessibility control style is now disabled

Updated on August 1, 2023

Applies to v23.2.1+.

This change applies to the BaseListBoxControl class (and its descendants).

What Changed

Previously, multiple WinForms Editors had their UseTextForAccessibility styles enabled. The second parameter for methods that enabled this style is now "false".

C#
// Prior to v22.1 editor.SetStyle(ControlStyles.UseTextForAccessibility, true); // v22.1 editor.SetStyle(ControlStyles.UseTextForAccessibility, false);

This change applies to the following classes (and their descendants):

  • TextEdit
  • ProgressBarBaseControl
  • ToggleSwitch
  • RichEditControl

Reasons for Change

If the UseTextForAccessibility style is enabled and the control's Active Accessibility name is not set, this name equals the editor's value (text). This should not be the case for controls whose values change frequently.

Impact on Existing Apps

The accessible name of affected controls no longer equals these controls' text values. If you had no accessibility tests that retrieved controls by their names, these tests can fail for editors whose accessible names were not set.

How to Revert to the Previous Behavior

It is not recommended to revert to the previous behavior and set the Active Accessibility name for affected editors manually.

If you cannot follow this recommendation, set the DefaultSettingsCompatibilityMode property to "v21_2". Alternatively, you can enable the static WindowsFormsSettings.UseEditorTextAsAccessibleName property.

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.