wpf - How can I make JAWS read the contents of a UserControl the same way it does a Window? -
jaws (the screen reader) treating contents of wpf user control differently contents of window. first time user tabs focusable element in user control, jaws reads entire contents of user control instead of focused element. on window, when user tabs control, jaws reads focused control. how can make user control behave window?
consider following xaml (namespaces/designer declarations omitted brevity):
<window ... title="mainwindow"> <stackpanel> <label>first label</label> <button>a button</button> <label>second label</label> <checkbox>a checkbox</checkbox> </stackpanel> </window> when above wpf application started, jaws reads "main window". if user presses tab, first button focused , jaws reads "tab button button activate press space bar". expected.
now consider above controls wrapped user control:
<usercontrol ...> <stackpanel> <label>first label</label> <button>a button</button> <label>second label</label> <checkbox>a checkbox</checkbox> </stackpanel> </usercontrol> and user control placed on mainwindow replace other controls:
<window ... title="mainwindow"> <uc:firstusercontrol/> </window> now when app started, jaws reads same thing ("main window"), when user presses tab, jaws reads: "tab first label second label button activate press space bar". if user presses tab again, checkbox receives focus jaws not re-read - reads checkbox label, expected. pressing tab third time cycle button, , time jaws reads focused button text. seems read entire contents of user control first time child control receives focus.
how can make contents of user controls behave same controls on normal window? (that is, want jaws read focused content unless user tells read on page).
Comments
Post a Comment