Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Latest commit

 

History

History

XAML accessibility sample

Requires

  • Visual Studio 2013

License

  • MS-LPL

Technologies

  • XAML
  • Windows Runtime

Topics

  • User Interface

Updated

  • 11/25/2013

Description

This sample shows you how to add basic accessibility support to your app.

Specifically, this sample covers:

  • Automation properties set at the app level. This is typically done using the AutomationProperties attached properties. For example, you can set the accessible name that is crucial to many assistive technology scenarios by setting AutomationProperties.Name.
  • Tab sequence, which includes checking and using the existing layout-derived tab sequence, and deliberately modifying that sequence by setting TabIndex.
  • Overriding the AutomationPeer class to report specific information about a control. This includes information about the name, role and value of the control from an accessibility framework perspective. The peer implements one of the automation patterns, by inheriting and implementing a pattern interface and its members. Automation clients can then query for available patterns and invoke automation APIs using that pattern.
  • Adding accessibility support to the items in a data-bound custom ListView by overriding the PrepareContainerForItemOverride method to set automation properties.

To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.

To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.

Note  For Windows 8 app samples, download the Windows 8 app samples pack. The samples in the Windows 8 app samples pack will build and run only on Microsoft Visual Studio 2012.

Related topics

Accessibility in apps using C++, C#, or Visual Basic
Guidelines and checklist for accessibility
AutomationProperties
ItemsControl.PrepareContainerForItemOverride
Roadmap for C# and Visual Basic
Windows.UI.Xaml.Automation
Windows.UI.Xaml.Automation.Peers
Windows.UI.Xaml.Automation.Provider
Windows 8 app samples

Operating system requirements

Client
Windows 8.1
Server
Windows Server 2012 R2

Build the sample

  1. Start Visual Studio and select File > Open > Project/Solution.

  2. Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Microsoft Visual Studio Solution (.sln) file.

  3. Press F7 or use Build > Build Solution to build the sample.

Run the sample

To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.