Skip to content

Sample: Back button accessibility label — .NET MAUI 11 Preview 5#774

Open
davidortinau wants to merge 1 commit into
dotnet:mainfrom
davidortinau:daortin/p5-sample-backbutton-a11y
Open

Sample: Back button accessibility label — .NET MAUI 11 Preview 5#774
davidortinau wants to merge 1 commit into
dotnet:mainfrom
davidortinau:daortin/p5-sample-backbutton-a11y

Conversation

@davidortinau

Copy link
Copy Markdown
Contributor

Adds a new sample under 11.0/Fundamentals/Accessibility/BackButtonAccessibility/ that demonstrates the new back-button accessibility-label APIs added in .NET MAUI 11 Preview 5 (dotnet/maui#35011, closes dotnet/maui#17984).

Two new properties let an app set the back-button announcement that VoiceOver, TalkBack, and Narrator read out:

  • NavigationPage.BackButtonAccessibilityLabel (attached BindableProperty for any page hosted in a NavigationPage)
  • Shell.BackButtonBehavior.AccessibilityLabel (BindableProperty on BackButtonBehavior)

What the sample shows

  • A NavigationPage-hosted detail page that sets NavigationPage.BackButtonAccessibilityLabel="Back to order list" — screen readers announce that text instead of the platform default ("Back")
  • README snippet showing the equivalent setup for Shell via BackButtonBehavior.AccessibilityLabel

Note

11.0/Directory.Build.props pin to Preview 3 applies here too — see the BoxView.Fill PR description.

Demonstrates the new back-button accessibility-label APIs introduced
in .NET MAUI 11 (dotnet/maui#35011, closes dotnet/maui#17984).

Includes:
- NavigationPage.BackButtonAccessibilityLabel attached property on a
  pushed detail page
- Shell BackButtonBehavior.AccessibilityLabel XAML reference snippet
  in the README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add semantic properties for the Toolbar BackButton

1 participant