Skip to main content

Accessibility

Fluence.Wpf controls follow WPF keyboard, focus, and UI Automation patterns where their base control supplies them. Custom controls add peers in Fluence.Wpf.Automation for their own behavior. The Gallery's Accessibility page exercises focus order, high contrast, automation, and right-to-left layout.

Gallery accessibility page in light mode Gallery accessibility page in dark mode

Provide names and keyboard paths​

Use this checklist when building an application:

  • Give icon-only and otherwise unlabeled controls an accessible name with AutomationProperties.Name. Check that the name describes the action rather than the icon.
  • Check the Tab order and complete each task using a keyboard. Include custom content in title bars, navigation panes, dialogs, and flyouts.
  • Keep a visible focus indicator. Application templates should use the published focus resources.
  • Check Light, Dark, and High Contrast for readable text, status, focus, and selection. Do not convey status through color alone.
  • Check reduced-motion behavior for application animations, and exercise the UI with a screen reader on the Windows versions you support.

For example, give an icon-only button a name:

<fluence:Button AutomationProperties.Name="Refresh">
<fluence:Button.Icon>
<fluence:FontIcon Glyph="&#xE72C;" />
</fluence:Button.Icon>
</fluence:Button>

Check custom controls​

The following custom peers are defined in Fluence.Wpf.Automation. The peer is created by its owning control; inherited WPF automation behavior may also apply. Consult the peer and its XML comments for its exact provider and pattern behavior.

ControlCustom automation peer
AutoSuggestBoxAutoSuggestBoxAutomationPeer
BreadcrumbBarBreadcrumbBarAutomationPeer
CardCardAutomationPeer
ColorPickerColorPickerAutomationPeer
ContentDialogContentDialogAutomationPeer
DatePickerDatePickerAutomationPeer
DropDownButtonDropDownButtonAutomationPeer
FlyoutPresenterFlyoutPresenterAutomationPeer
FontIconFontIconAutomationPeer
HyperlinkButtonHyperlinkButtonAutomationPeer
ImageImageAutomationPeer
InfoBadgeInfoBadgeAutomationPeer
InfoBarInfoBarAutomationPeer
NavigationViewNavigationViewAutomationPeer
NavigationViewItemNavigationViewItemAutomationPeer
NumberBoxNumberBoxAutomationPeer
PersonPicturePersonPictureAutomationPeer
PipsPagerPipsPagerAutomationPeer
ProgressRingProgressRingAutomationPeer
RatingControlRatingControlAutomationPeer
SelectorBarItemSelectorBarItemAutomationPeer
SplitButtonSplitButtonAutomationPeer
TeachingTipTeachingTipAutomationPeer
TextBlockTextBlockAutomationPeer
TimePickerTimePickerAutomationPeer
TitleBarTitleBarAutomationPeer
ToggleSplitButtonToggleSplitButtonAutomationPeer
ToggleSwitchToggleSwitchAutomationPeer

The automation peer tests and accessible name tests are executable checks.

Test appearance as well as events​

The theme engine republishes High Contrast brushes from Windows system colors. Verify your own controls and overrides in each theme as well as with keyboard navigation and a screen reader. The Gallery provides a visual starting point.