I need to reopen combobox list when a special item selected from the list. In this code I assume combo list will reopen when an item selected. It works if you use keyboard but I’ve got problem with the mouse.
private void cbPredefinedReports_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
cbPredefinedReports.IsDropDownOpen = true;
}
How can I drop the list again when a user clicks an item?
Maybe this will help:
And your code behind
The reason you need a thread for this is because you can’t reopen the combobox in the DropDownClosed event, but you can do it in another thread. However, to update controlf in WPF from another thread, you need to invoke the Dispatcher. The above code does just what you asked.