-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Milestone
Description
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Copied AccessibilityInfoModule approach into sample XamlIslands app (create TextBlock, use to create automation peer)
- Turn on narrator, trigger logic
- Narrator does not announce the raised event.
Expected Results
Narrator should speak the text parameter supplied to the announceForAccessibility method. I suspect the automation peer does not work as expected from an element that is not attached to the XamlRoot in XamlIslands.
The previous implementation (added by @acoates-ms) grabbed the XamlRoot from the ReactContext property bag or Window.Content(), but neither of these are guaranteed to create an automation peer.
Snack, code example, screenshot, or link to a repository:
Here's the repro of the announceForAccessibility approach in a standalone XAML Islands app:
https://github.com/rozele/Xaml-Islands-Samples/tree/accessibilityExample