Live Chat Icon For mobile
Live Chat Icon

Why does the selection stay grayed out after I change the selection in the ListBox in the click of a button?

Platform: WPF| Category: ListBox

This is because the ListBox still doesn’t have the focus. To force focus on the listbox, call it’s Focus method after changing selection on it as follows:


Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.