Logo vun Avalonia Pro Max/Accessibility

Avalonia Pro Max/Accessibility

Communautéit
linuxdevel
avalonia-pro-max/accessibility

Use when adding or auditing accessibility in an Avalonia app — AutomationProperties, focus order, keyboard navigation, contrast, screen reader (Narrator/NVDA/VoiceOver/Orca) support, dynamic text scaling, reduced motion. Maps WCAG 2.2 AA to Avalonia APIs.

Iwwersiicht

Editeurlinuxdevel
RepositoryAvalonia-skills
Skill-Nummavalonia-pro-max/accessibility
Stären
50
Forks
4
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum linuxdevel op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Avalonia Pro Max/Accessibility an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-pro-max/accessibility
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/linuxdevel/Avalonia-skills.git /tmp/Avalonia-skills
mkdir -p .claude/skills
cp -r /tmp/Avalonia-skills/skills/avalonia/avalonia-pro-max/accessibility .claude/skills/linuxdevel-avalonia-pro-max-accessibility
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Avalonia Pro Max/Accessibility an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Avalonia Pro Max/Accessibility automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Avalonia Pro Max/Accessibility net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Accessibility in Avalonia

Avalonia exposes accessibility through:

APIPurpose
AutomationProperties.* attached propsNames, descriptions, roles, item status
Focusable / IsTabStop / TabIndexKeyboard traversal
Focus pseudoclasses (:focus, :focus-visible, :focus-within)Visible focus indication
KeyBindings, HotKey, KeyGestureShortcuts
RequestedThemeVariant, platform settings (TopLevel.PlatformSettings (11.x), visual.GetPlatformSettings() (12.0+))High-contrast / dark mode / reduced motion
AccessKey (_File)Mnemonic underline shortcuts
ToolTip.TipHover and screen-reader hints

Targets: WCAG 2.2 AA, plus Windows UI Automation, macOS NSAccessibility, Linux AT-SPI.

Version notes:

  • (12.0+) Linux AT-SPI2 accessibility backend (Orca). In 11.x there is no AT-SPI2 backend, so Linux screen-reader support is not available.
  • (12.0+) Validation errors are exposed through automation, and TextBox.PlaceholderText is accessible to screen readers.
  • (12.0+) TopLevel.PlatformSettings is removed. Use visual.GetPlatformSettings() (VisualExtensions). In 11.x use TopLevel.GetTopLevel(this)?.PlatformSettings.

AutomationProperties (Required)

xml
<Button Command="{Binding DeleteCommand}"
        AutomationProperties.Name="Delete project"
        AutomationProperties.HelpText="Permanently removes the current project and all its files">
  <PathIcon Data="{StaticResource TrashIconGeometry}"/>
</Button>

Common properties:

PropertyWhenExample
AutomationProperties.NameAlways for icon-only / image-only / unlabeled controls"Search"
AutomationProperties.HelpTextLong-form explanation"Searches across all projects"
AutomationProperties.AcceleratorKeyDisplay the keyboard shortcut"Ctrl+K"
AutomationProperties.AccessibilityViewContent / Control / Raw — control visibility to ATRaw for purely decorative
AutomationProperties.IsRequiredForFormRequired form fieldsTrue
AutomationProperties.LabeledByWhen a TextBlock labels another control{Binding ElementName=EmailLabel}
AutomationProperties.LiveSettingPolite/Assertive live regionsPolite for toasts
AutomationProperties.ItemStatusDynamic state (e.g., "Saving…")"3 of 5 selected"
AutomationProperties.AutomationIdStable test id (for UI tests, also used by AT)"login.submit"

Hide decorative elements

xml
<PathIcon Data="{StaticResource ChevronGeometry}"
          AutomationProperties.AccessibilityView="Raw"/>

Label association

xml
<TextBlock x:Name="EmailLabel" Text="Email"/>
<TextBox AutomationProperties.LabeledBy="{Binding ElementName=EmailLabel}"/>

Focus Indication (Never Remove)

FluentTheme ships a focus ring. If you replace a ControlTheme, re-add it:

xml
<Style Selector="Button:focus-visible /template/ ContentPresenter">
  <Setter Property="BorderBrush" Value="{DynamicResource AccentBrush}"/>
  <Setter Property="BorderThickness" Value="2"/>
</Style>

:focus-visible activates only when focus arrived from keyboard — preferred over :focus so mouse clicks don't show the ring. Always provide some visible cue on :focus too in case :focus-visible is not detected.

Minimum: 2px ring, contrast ≥3:1 against the surface.


Keyboard Navigation

Tab order

  • Tab order follows logical tree by default.
  • Override via TabIndex="N" (lower = earlier).
  • IsTabStop="False" on labels and decorative containers.
  • Group containers: set KeyboardNavigation.TabNavigation="Local" on a panel to scope Tab within it.

Modes

xml
<StackPanel KeyboardNavigation.TabNavigation="Cycle"
            KeyboardNavigation.DirectionalNavigation="Contained">
  …
</StackPanel>
ModeEffect
Continue (default)Tab traverses normally
LocalTab cycles within the container
CycleCycles within and stops
OnceContainer as a whole gets one tab stop
NoneSkipped

Focus Traversal API (12.0+)

Avalonia 12 adds a Focus Traversal API: public IFocusManager (FindNextElement, TryMoveFocus, FindFirstFocusableElement, replacing KeyboardNavigationHandler.GetNext), cancellable focus changes, and FocusChangedEventArgs on GotFocus/LostFocus (replaces GotFocusEventArgs). Use it for programmatic focus moves (e.g. after closing a dialog or on a validation failure) instead of walking the visual tree. In 11.x use KeyboardNavigationHandler and GotFocusEventArgs.

Arrow-key navigation

Set KeyboardNavigation.DirectionalNavigation for Lists/grids to allow arrow keys.

Mnemonics

xml
<MenuItem Header="_File"/>   <!-- Alt+F -->
<Button Content="_Save" Command="{Binding SaveCommand}"/>

Shortcuts

xml
<Window>
  <Window.KeyBindings>
    <KeyBinding Gesture="Ctrl+S" Command="{Binding SaveCommand}"/>
    <KeyBinding Gesture="Ctrl+K" Command="{Binding OpenSearchCommand}"/>
    <KeyBinding Gesture="Cmd+S"  Command="{Binding SaveCommand}"/>  <!-- macOS -->
  </Window.KeyBindings>
</Window>

Also expose as HotKey on a Button:

xml
<Button Content="Save" HotKey="Ctrl+S" Command="{Binding SaveCommand}"/>

Color Contrast

ElementMin ratioTool
Body text on background4.5 : 1WCAG AA
Large text (≥18px / ≥14px bold)3 : 1WCAG AA
UI components (icon, focus ring, border)3 : 1WCAG 2.2
Disabled textexempt (but make it clearly disabled)—

Validate every brush pair light and dark. Common pitfalls:

  • TextMutedBrush over SurfaceBrush often fails — use Slate 600+ on light, Slate 400+ on dark.
  • Accent text on white usually needs Blue 600+, not Blue 500.
  • Disabled buttons at 50% opacity may fail 3:1 against accent.

Don't Convey by Color Alone

Bad: Status as a single colored dot. Good: Color + icon + text:

xml
<StackPanel Orientation="Horizontal" Spacing="6">
  <Ellipse Width="8" Height="8"
           Fill="{DynamicResource SuccessBrush}"
           AutomationProperties.AccessibilityView="Raw"/>
  <PathIcon Data="{StaticResource CheckGeometry}" Width="14" Height="14"
            Foreground="{DynamicResource SuccessBrush}"
            AutomationProperties.AccessibilityView="Raw"/>
  <TextBlock Text="Active" Foreground="{DynamicResource TextPrimaryBrush}"/>
</StackPanel>

Forms — Accessible Validation

xml
<StackPanel Spacing="4">
  <TextBlock x:Name="LblEmail" Text="Email"/>
  <TextBox Text="{Binding Email}"
           AutomationProperties.LabeledBy="{Binding ElementName=LblEmail}"
           AutomationProperties.IsRequiredForForm="True"/>
  <TextBlock Text="{Binding EmailError}"
             IsVisible="{Binding HasEmailError}"
             Foreground="{DynamicResource DangerBrush}"
             AutomationProperties.LiveSetting="Polite"/>
</StackPanel>

(12.0+) Validation errors surface to assistive tech through automation automatically; keep the visible inline error and the LiveSetting line anyway so 11.x apps and custom error text behave the same. PlaceholderText (12.0+; Watermark in 11.x) is accessible, but never use it as the only label (see LabeledBy).

Move focus to first invalid field on submit:

csharp
if (!IsValid && firstInvalid is Control c) c.Focus(NavigationMethod.Tab);

Screen Reader Live Regions (Toasts)

xml
<TextBlock x:Name="StatusLine"
           Text="{Binding Status}"
           AutomationProperties.LiveSetting="Polite"
           AutomationProperties.Name="Status"/>

Polite waits until idle; Assertive interrupts. Use Assertive only for errors and important blocks.


Dynamic Text Scaling

Avoid fixed FontSize literals in views — drive everything from your FontSize* resources. Bind a global scale factor when needed:

xml
<TextBlock FontSize="{Binding FontSize, Source={x:Static app:UserPrefs.Instance},
                              Converter={StaticResource ScaleConverter}}"/>

Avoid:

  • Fixed Height on text containers — text gets clipped at 200% scale.
  • MaxLines="1" without TextTrimming="CharacterEllipsis" and a tooltip.

Test at 100%, 150%, 200% OS DPI scaling.


High-Contrast Mode

Windows high-contrast: FluentTheme adapts most colors. For custom controls:

xml
<Style Selector="Border.card">
  <Setter Property="BorderBrush" Value="{DynamicResource SystemControlForegroundBaseHighBrush}"/>
  <Setter Property="BorderThickness" Value="1"/>
</Style>

Or supply a third theme dictionary keyed HighContrast (Avalonia respects custom variants when registered).


Touch Targets

Even on desktop, touch users exist (Surface, tablet, kiosk). Min visible size or padded hit-area: 36×36 px (desktop), 44×44 px (touch/mobile).

Expand hit area without enlarging visual:

xml
<Button Padding="10" MinWidth="36" MinHeight="36">
  <PathIcon Data="…" Width="16" Height="16"/>
</Button>

Keep ≥8 px between adjacent tap targets.


Reduced Motion

See avalonia-pro-max/motion — every animation must have a zero-duration fallback.


Testing

  • Tab through every screen — can you reach and operate every control?
  • Activate Windows Narrator / macOS VoiceOver / Orca — read each major screen. Orca (Linux) requires Avalonia 12.0+ (AT-SPI2).
  • Run the app at OS DPI 200%.
  • Toggle high contrast.
  • Use the Avalonia DevTools Visual Tree → look for unnamed actionable controls.
  • For UI tests, set AutomationProperties.AutomationId on every control under test.

Common Mistakes

  • Icon-only button without AutomationProperties.Name — invisible to screen readers.
  • Removed focus ring "for cleanliness" — keyboard users are blocked.
  • TextBlock used as a clickable header — not focusable, no role; use Button.ghost instead.
  • Color-only error indication — colorblind users miss it.
  • MaxLines truncation without tooltip — text scaled to 200% gets clipped silently.
  • KeyBinding on Window only — won't fire if focus is in a TextBox that swallows the key. Use RoutedCommand or also bind on the TextBox.
  • Different shortcuts on Win vs macOS not provided — provide both Ctrl+ and Cmd+.
  • AutomationProperties.AccessibilityView="Raw" on a meaningful control — hides it entirely.
  • Missing AutomationProperties.LabeledBy between visible label and input.

Heefeg gestallte Froen

Wat mécht de KI-Skill Avalonia Pro Max/Accessibility?

Use when adding or auditing accessibility in an Avalonia app — AutomationProperties, focus order, keyboard navigation, contrast, screen reader (Narrator/NVDA/VoiceOver/Orca) support, dynamic text scaling, reduced motion. Maps WCAG 2.2 AA to Avalonia APIs.

Firwat Avalonia Pro Max/Accessibility op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Avalonia Pro Max/Accessibility besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Avalonia Pro Max/Accessibility an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/linuxdevel/Avalonia-skills/tree/main/skills/avalonia/avalonia-pro-max/accessibility an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Avalonia Pro Max/Accessibility benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Avalonia Pro Max/Accessibility benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Avalonia Pro Max/Accessibility domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Avalonia Pro Max/Accessibility gratis?

Jo. De Skill gëtt vum linuxdevel ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇