Skip to content

Conversation

corvinsz
Copy link
Member

@corvinsz corvinsz commented Sep 3, 2025

fixes #3904

This PR sets the default value of the AutomationProperties.Name to the HintAssist.Hint of the respective input control, so that a screen reader picks up the hint-text by default.
The effected controls are essentially all the input controls:

  • TextBox
  • PasswordBox
  • ComboBox
  • DatePicker
  • TimePicker
  • NumericUpDown
  • AutoSuggestBox

I successfully tested the changes with the NVDA screen reader.

The issuer is talking about supporting "complex headers" too, but do we really want to support something like this?
In my opinion, we shouldn't, see my comment.

@corvinsz corvinsz changed the title Fix3904 Default AutomationProperties.Name to HintAssist.Hint Sep 3, 2025
@Keboo Keboo added enhancement release notes Items are likely to be highlighted in the release notes. labels Sep 5, 2025
@Keboo Keboo added this to the 5.3.0 milestone Sep 5, 2025
@Keboo
Copy link
Member

Keboo commented Sep 5, 2025

I agree. We can't handle complex headers as there are too many edge cases to try and figure out. As nice as it would be, I think leaving those in the hands of the application author is best.

@Keboo Keboo merged commit 44ae0e3 into MaterialDesignInXAML:master Sep 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement release notes Items are likely to be highlighted in the release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NVDA does not read ComboBox names with complex Headers in MaterialDesignFloatingHintComboBox and MaterialDesignFilledComboBox
2 participants