liveBook · Manning

Accessibility

As explained in .NET MAUI in Action

Accessibility is the design of software interfaces so that people with disabilities can perceive, understand, navigate, and operate them.

Accessibility, often shortened to a11y, makes an interface usable when visual cues alone are unavailable. Screen readers can replace or supplement visual use, so controls need metadata that communicates meaning, hierarchy, and purpose. section 2.3

In .NET MAUI, semantic properties provide this metadata for assistive technologies. A heading’s semantic level can tell a screen reader both its text and its place in the interface hierarchy. section 2.3

Build accessible UI by supplying information that sighted users might otherwise infer visually:

  • Describe meaningful images so a screen reader can communicate their content. section 2.3
  • Add hints that explain what input is expected and how entered information will be used. section 3.2
  • Do not rely on color alone for errors or success; use color and contrast to improve readability alongside other cues. section 3.2
  • Use WCAG 2.1 guidance when designing visually accessible interfaces. section 2.3

Describe a name entry field

An Entry can expose a placeholder for the visible UI and a SemanticProperties.Hint for assistive technology. Keep the hint aligned with the displayed instruction, such as explaining that the entered name will be used when sharing a location. section 3.2

<Entry                                #1
    Placeholder="Enter your name"     #2
    SemanticProperties.Hint="Enter your name to be used when sharing location"
    HorizontalOptions="Center"
    x:Name="UsernameEntry"/>          #3

This Entry shows a visible placeholder paired with SemanticProperties.Hint, giving screen-reader users a fuller explanation of the requested name. section 3.2

How .NET MAUI in Action covers it

How deep it goes
Introduces semantic descriptions, hints, heading levels, and limits of color cues; defers comprehensive accessibility study to external .NET MAUI resources.
Examples
Uses an image description, a Label heading level, and a location-sharing name Entry with a semantic hint.
What you can do after
Apply it via .NET MAUI semantic properties to describe interface elements for screen readers without relying solely on visual cues.
How it connects
Connects semantic properties with screen readers, WCAG 2.1, color contrast, Labels, Images, and Entry controls.

Also explained in

Compare how 6 books explain accessibility →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET MAUI in Action. The section links point to the parts of the book it draws on.