I have created a wpf window control successfully and I have populated it with a listbox with each listbox item containing a grid control with various textboxes/checkboxes etc. All is working fine except for one issue.
I am allowing the user to enter text into one of the text boxes in each listbox item. The problem is it does not matter what I do I can't enter any text through the keyboard. I can populate the textbox programatically okay, and also if the user selects some text in the textbox and drags the subset text around (i.e. select the last 3 characters of the textbox and drag to the beginning of the textbox) then I can enter some characters, but as soon as the focus is lost then I cannot enter the textbox again.
The text box is set to not be readonly and is focused. Also when clicking on the text the cursor positions itself correctly in between the correct characters - but I can't enter anything.
I have also noticed that when I move focus off my application completely then I can no longer select any text at all.
The textbox works fine in toolwindow headers/main application but not in the windowcontrol.
Any ideas or known issues/workarounds would be appreciated.