I am trying to write my own control that has a TextBox and a ListBox inside it. But I found that when I enter text in a TextBox (so that the TextBox has focus), the ListBox appears as unfocused. This makes my control look like two different controls.
I read on MSDN that there is something called FocusScope in WPF, but I failed.
So my question is: how can I get the ListBox and TextBox controls to focus when one of them has keyboard focus?
source share