HeaderPane
Main
Hide
Share Link
Print

Accessibility (Screen Readers)

SftDate/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 both controls, including the dropdown, without the hosting application doing any work. There is no opt-in and no code change required.

Names

A control 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 text boxes and combo boxes. Place a Label with a text such as "&Start date:" directly before the control in tab order, or set AccessibleName. The AccessibleDescription property becomes the control's help text.

Fields

ElementExposed as
FieldA combo box with the formatted value, which expands and collapses the dropdown. When the field receives the input focus, screen readers announce its name, value and state, for example "Start time, 2:00 PM, collapsed".
Parts of the valueEach part (day, month, year, hours, ...) is a spinner named after the part, with its value and its range ("Day, 22, minimum 1 and maximum 31"); parts shown as words, such as month names and AM/PM, report their text. A part takes the UIA focus when the user moves between the parts with the keyboard, and its changes are announced as they are typed.
Check box, buttonsThe check box is a check box; the Clear button, the dropdown button and the up and down buttons are buttons.
Dropdown calendarThe calendar described below, as part of the field.
Time listA list of times; the selected time is announced as the user moves in the list.
ClockThe hours, minutes and seconds are spinners, AM and PM are radio buttons, and the OK button is a button.

Calendars

ElementExposed as
CalendarA calendar with the Grid and Table patterns of the month holding the focused date, and the selected date as its value.
MonthsEach month is a table named by its title, with the names of the days of the week as column headers and the week numbers ("Week 48") as row headers.
DaysEach day is a data item named by its long date and the tooltip of a special date ("Thursday, November 26, 2026, Thanksgiving"), with its row and column, its selection state, whether it can be selected, and "Today" as status for today's date.
Months, years and decadesIn the year, decade and century views, the periods are list items.
ButtonsThe previous and next buttons and the Today and Clear buttons are buttons. The previous and next buttons are named "Previous month" and "Next month" ("Previous" and "Next" in the larger views); the Today and Clear buttons by their texts.

Screen readers can also change the value, select dates and times, open and close the dropdown and click the buttons. These actions work like the equivalent mouse and keyboard actions, so the controls' events, such as ValueChanged and DropDownClosed, occur as usual. Changes of the value, the selection, the focused part and the months shown are reported to screen readers automatically. 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 SftDate.Announce and SftCalendar.Announce methods push short status messages ("Booking saved", "No rooms available on this date") to screen readers. Use them 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.