I have a WPF application window where user needs to enter their username and password to log in.
As shown in the following image.
wpf window
I want JAWS to read the text like this.
My Application
Login window
Enter your username and password
and the keyboard focus should be inside username textbox when the window is loaded.
This means JAWS should read the elements sequentially. How to achieve this?
If I create a hidden element and then focus on it to read the required text then keyboard focus can't go on the username textbox.
Related
I have an Excel-dna addin which creates a WPF window with a Textbox in it and show it.
When i call Window.Show() and type something into the Textbox, the keyboard input is redirected to the selected Excel-Cell instead of into the Textbox.
When i call Window.ShowDialog() it works as expected.
My goal is to have something like a tool window being able to react on changing cell selection in Excel (but also being able to type into Textboxes in that tool window).
I have a WinForms application. The problem is that a virtual keyboard doesn't appear when I enter the TextBox on my tablet with Windows 10. I also have some TextBox to enter password (with PasswordChar property set). In that TextBox virtual keyboard appears correctly.
So, to make the experiment clear I made a sample WinForms application and added a few TextBox on the Form, one of them for entering password (with PassowordChar property set). And it appears that even in a clear sample application virtual keyboard didn't appear for usual TextBox and appeared for PasswordChar TextBox.
So, can I fix the problem in any way?
Or should I just wait for some updates?
This has me baffled.
I've written a popup box which consists of a WinForms UserControl hosted inside a WindowsFormsHost, which, in turn, is hosted in a Primitives.Popup which is displayed on the screen. The whole application is WPF, but this control was lifted from an earlier application written in WinForms.
The popup is activated by an external event (an incoming phone call from a CTI Server).
Inside the UserControl is a textbox control. When the user clicks in the text box, I call the Focus method on the Popup, then call the Focus method on the textbox. The textbox gets the focus. I can be fairly sure of that because the box shows a cursor after clicking in it, and also I have a "GotFocus" event handler that prints a debugging message.
However, if there was another program active at the time the incoming event occurs, any keys that are pressed on the keyboard continue to go to that program, not to the text box. Only if the user clicks in another part of my application (i.e., part of the screen outside the popup) to make it the active program, and then clicks in the text box is the text box able to receive keyboard input.
I hope I've given enough information without overwhelming you with the myriad of details. If there's something else anyone needs to point me in the right direction, I'll be happy to provide it.
Because the WinForm TextBox is hosted, setting focus on it does not activate the hosting WPF Window. Add a line to activate the Window.
private void TextBox_Click(object sender, EventArgs e)
{
this.Activate(); //activate the Window
(sender as System.Windows.Forms.TextBox).Focus();
}
I have to implement the UI accessibility in my WPF application, especially the screen reader Jaws. I have a textbox where the user should enter some text. How can I make Jaws to read the text that was just inserted by the user?
I am writing a control in WPF that draws a shape on a form and then draws dimensions of this shape. These dimensions are editable so they are shown in a text box. When the user changes a dimension in a text box the shape is updated.
I am updating the shape when the textbox showing the dimension loses focus i.e. as soon as the text box loses the focus the shape and all the dimensions are redrawn. A text box loses focus in one of two ways - either when user presses tab key or when user clicks in another control outside the text box.
My problem is that when user presses tab key or clicks somewhere else outside the text box the whole control is redrawn and the focus is not set to the next control where it should be. This is really annoying because tabs stop working altogether and to set a focus using mouse the user has to click twice. Is there a way around this?
An image of my control is shown below
alt text http://img223.imageshack.us/img223/9496/cavity.png
It seems that you want to manage the tab order yourself in this window and to do that, I'd think you would subscribe to the GotKeyboardFocus and LostKeyboardFocus events on those edit fields and then drive focus to the appropriate location if you're not happy with where focus has gone.