- Visual Studio 2013
- MS-LPL
- XAML
- Windows Runtime
- User Interface
- 11/25/2013
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.
- 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
Client | |
---|---|
Server |
-
Start Visual Studio and select File > Open > Project/Solution.
-
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.
-
Press F7 or use Build > Build Solution to build 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.