forked from microsoft/WPF-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation for all accessibility samples and removed samples…
… targeting Windows Forms
- Loading branch information
Harikm
committed
Aug 16, 2015
1 parent
339379f
commit 7ee94f9
Showing
40 changed files
with
48 additions
and
2,782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
|
||
# %Sample% sample | ||
# TextPattern Search and Selection Sample | ||
This sample demonstrates the Microsoft UI Automation TextPattern and TextPatternRange classes. | ||
|
||
This sample shows how to use the %objective | ||
The sample consists of a WPF client and the choice of a FlowDocumentReader (Windows Presentation Foundation (WPF)) target or a WordPad (Win32) target. The client uses the TextPattern control pattern class and the TextPatternRange class to interact with the text controls in the target. | ||
|
||
## Remarks | ||
The functionality demonstrated by the sample includes the ability to search for and select a string of text within the target, manipulate the existing selections within the target by expanding or contracting them to a specific TextUnit, and navigate forward or backward within the text of the target. | ||
|
||
## Remarks | ||
Three WPF documents are provided in the Content folder of the TextProvider project. | ||
|
||
## Build the sample | ||
|
||
The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs). | ||
|
||
### Deploying the sample | ||
|
||
- Select Build > Deploy Solution. | ||
|
||
### Deploying and running the sample | ||
|
||
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
|
||
# %Sample% sample | ||
# TrackFocus Sample | ||
This sample tracks the input focus on the desktop and displays information about focus changes, using Microsoft UI Automation. This is a simple console application that might be used as a starting-point for an application that uses UI Automation to track events on the desktop. | ||
The program announces when the input focus changes. If the focus moves to a different application window, the caption of the window is announced. If the focus moves within an application window, the type and name of the control being read are announced. | ||
To know when the focus switches from one application to another, the program keeps a list of the runtime identifiers of all open top-level windows. In response to each focus-changed event, a TreeWalker is used to find the parent window, and that window is compared with the last window that had focus. | ||
|
||
This sample shows how to use the %objective | ||
The program subscribes to three event types: | ||
|
||
## Remarks | ||
- Structure changed. The only event of interest is the addition of a new top-level window. | ||
- Focus changed. All events are captured. | ||
- Window closed. When a top-level window is closed, its runtime ID is removed from the list. | ||
|
||
For simplicity, no caching is done. A full-scale application would likely cache all immediate children of an application window as soon as that window received focus. | ||
|
||
## Build the sample | ||
|
||
The easiest way to use these samples without using Git is to download the zip file containing the current version (using the link below or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in [Visual Studio 2015](https://www.visualstudio.com/wpf-vs). | ||
|
||
### Deploying the sample | ||
|
||
- Select Build > Deploy Solution. | ||
|
||
### Deploying and running the sample | ||
|
||
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging. | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.