Skip to content

Accessibility

Pavel edited this page Oct 21, 2026 · 7 revisions

English | Русский

The viewer describes the document to UI Automation — to screen readers and UI tests — with the same structure you see.

What screen readers get

On the screen For UI Automation
the viewer a Document whose children are all its blocks, in view or not
a paragraph Text with the paragraph's text
a heading Text with a heading level from 1 to 6: readers can jump between headings
a list, a definition list, a quote, a footnote a List or a Group of the created content
a table a Table with rows and columns: the cells of the header row are the column headers, a cell is named by its text
a callout, a collapsible block a Group named by its title; a collapsible one can be expanded and collapsed
a link a Hyperlink that can be invoked
a footnote reference and ↩ a Hyperlink named by the footnote number or ↩; invoking it scrolls like a click
an image an Image named by its alt text
a task a CheckBox with the state of the task: checked or not; a task with a status — indeterminate. It is available and toggles the task while controls edit the source — see Task Lists
the copy button of a code block a Button named by the theme key Md.CodeBlock.CopyToolTip

The name of the viewer itself is yours to give: it is what a reader says when focus comes to the document.

A window or a user control:

<md:MarkdownViewer Markdown="{Binding Text}" AutomationProperties.Name="Release notes" />

Interface strings — the button name, the menu captions — are English by default; translate them with theme keys: Theming → Interface strings. An image gets a better name from a meaningful alt text: ![Sales by month, 2025](sales.png).

Keyboard

The viewer takes focus on a click and handles Ctrl+A, Ctrl+C and Ctrl+Shift+C. Tab moves between the links of the created blocks, Enter opens the focused link. The context menu opens with the Menu key or Shift+F10. Selecting text with the arrow keys is not supported.

Blocks out of view

The viewer creates controls only for visible blocks — see Scrolling and Virtualization. UI Automation still gets every block: a block out of view is a node named by its text, so «read all» reaches the end of the document. Such a node supports VirtualizedItem: when a screen reader realizes it, the viewer scrolls to the block, and the node gets the links, images and task boxes of the block.

Beresta.Markdown.Wpf

Basics

Working with Text

Appearance

Integration

Editing

Your Own Syntax

Ready-made Extensions


По-русски

Основы

Работа с текстом

Оформление

Встраивание в приложение

Правка

Свой синтаксис

Готовые расширения

Clone this wiki locally