Repository navigation
Accessibility
English | Русский
The viewer describes the document to UI Automation — to screen readers and UI tests — with the same structure you see.
| 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: .
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.
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 · Issues · MIT License
Basics
- Getting Started
- How It Renders
- Supported Markdown
- Settings and Hooks
- Scrolling and Virtualization
- Comparison
Working with Text
Appearance
Integration
- Application Links
- Images
- Untrusted Text
- Task Lists
- Source Lines and Two Panes
- Coordinates
- Live Preview
Editing
Your Own Syntax
Ready-made Extensions
Основы
- Начало работы
- Как рисует вьюер
- Что поддерживается
- Настройки и перехват
- Прокрутка и виртуализация
- Сравнение
Работа с текстом
Оформление
Встраивание в приложение
- Ссылки приложения
- Картинки
- Чужой текст
- Списки задач
- Строки исходника и две панели
- Координаты
- Живой предпросмотр
Правка
Свой синтаксис
Готовые расширения