Search code examples
comboboxsilverlight-5.0

How can I prevent a dropdown from closing when I`ve selected an item?


I have custom control, derived from combobox.

I want it to not close itself when I select an item. If I set the IsDropDownOpen property to false in protected override void OnDropDownClosed(EventArgs e), this method just starts to chain invoke itself.

If IsDropDownOpen is set in the OnSelectionChanged handler nothing happens.

Any suggestions?


Solution

  • No way. ComboBox is ComboBox, when a item is selected automatically closes it. ListBox is a good option here.

    Regards.