WPF Popup tab key bug
问题 I have a WPF Popup control with a ListBox and a Button in it. When I click the Button , it should become disabled. The problem is, that when I disable the Button, the Tab key goes out from the Popup. I tried to set the focus to the ListBox, after I set the Button's IsEnabled to false, but that did not work. So, how can I set the tab focus to the ListBox inside the Popup control ? Here is my code. Window1.xaml: <Window x:Class="WpfApplication5.Window1" xmlns="http://schemas.microsoft.com/winfx