none
XAML Page load announcements in Narrator (Windows 8 Apps)

    Question

  • When a page loads focus goes to the first tab-stop. Narrator will read whatever text is on that control. But, my pages have a title... it's a textblock. They then have sub-headings (again textblocks). I need Narrator to start with those so people know what page they are on. Does anyone know how to control what Narrator, I can't set the tabstop to a textblock and see no other way to control what Narrator starts with.
    Wednesday, June 26, 2013 4:41 PM

Answers

  • Looks like I figured it out... LiveSettings.

    The TextBlock that I want read on page load needs  AutomationProperties.LiveSetting="Polite"

    The in OnNavigatedTo trigger an update of that Live Region with this code:

    TextBlockAutomationPeer.FromElement(pageTitle).RaiseAutomationEvent(AutomationEvents.LiveRegionChanged);

    • Marked as answer by PatFatCat Monday, August 19, 2013 5:42 PM
    Thursday, June 27, 2013 6:30 PM