SftStyle/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 slider and the dialogs without the hosting application doing any work. There is no opt-in and no code change required. The support was checked with Narrator and Accessibility Insights for Windows in both frameworks.
A slider 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 the TrackBar. Place a Label with a text such as "&Volume:" directly before the slider in tab order, or set AccessibleName. The AccessibleDescription property becomes the slider's help text.
| Element | Exposed as |
|---|---|
| Slider | A slider with its value, minimum, maximum and steps (RangeValue pattern) and its value as formatted with SftSlider.TickLabelFormat (Value pattern), so screen readers read the value itself, such as "30" or "$200", rather than a percentage. |
| Thumbs of a range slider | In range mode, each thumb is a slider of its own, named after the slider with "lower value" and "upper value" ("Price range, lower value"), with the range that thumb can take, as in the multi-thumb slider of ARIA. The thumb that has the focus has the UI Automation focus. |
Screen readers can also set the value. Changes of the value are reported to screen readers automatically.
| Dialog | Exposed as |
|---|---|
| Message box | A dialog whose text screen readers read when it opens, with its buttons. |
| Task dialog | A dialog whose heading and text screen readers read when it opens; command links are buttons with their description as help text, the radio buttons and the verification check box report their state, the expander button is a button that expands and collapses (ExpandCollapse pattern), the progress bar a progress bar with its value, named after the heading or, without one, the caption. |
| Color dialog | A dialog with the basic, named, system and custom colors as lists whose colors are list items with their names and positions, the fields of the color editor as edit controls named after their labels, the hue and opacity strips as sliders, and the saturation and brightness area as a graphic. |
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.
Dark mode and Windows High Contrast are independent accessibility settings. See The SftStyle Component and High Contrast.