HeaderPane
Main
Hide
Share Link
Print

Accessibility (Screen Readers)

SftBox/NET 3.0 includes built-in Windows UI Automation (UIA) support. Users who rely on Narrator, NVDA, JAWS or any other UIA-compatible assistive technology can read and use the combo box and its list, including the dropdown, without the hosting application doing any work. There is no opt-in and no code change required.

Names

A combo box is named by its AccessibleName property. Without one, it takes the text of the label in front of it in tab order, the label whose mnemonic moves the focus to it, as Windows does for its combo boxes. Place a Label with a text such as "&Country:" directly before the control in tab order, or set AccessibleName. The AccessibleDescription property becomes the control's help text.

Elements

ElementExposed as
Combo boxA combo box with its text as value, which expands and collapses the dropdown and reports the selected item. When the combo box receives the input focus, screen readers announce its name, value and state, for example "Country, Denmark, collapsed".
Edit fieldAn edit control with the text, in the DropDown and Simple styles.
Dropdown buttonA button named "Open" or "Close", for what it does.
ListA list of the items shown, in the order they are shown.
ItemsEach item is a list item named after the text of its columns, in the order the columns are shown, with its level and its position among its siblings. Items can be selected, scrolled into view, expanded and collapsed.

While the dropdown is open, the item the user is on has the UI Automation focus, so screen readers announce each item as the user moves in the list. Screen readers can also change the text, open and close the dropdown and select items; these actions work like the equivalent mouse and keyboard actions, so the events of the combo box occur as usual. The providers are created the first time a UI Automation client asks for them, so there is no overhead for applications whose users never run assistive technology.

Announcements

The SftBox.Announce method pushes short status messages ("3 matching cities", "Order saved") to screen readers. Use it for momentary status updates that are not otherwise visible in the control.

Dark mode and Windows High Contrast are independent accessibility settings. See Dark Mode and High Contrast.