Refreshing WPF ComboBox
I have ComboBox
that lists all enum values using ObjectDataProvider
. Since enum-values are not always that clear and they need to be localized, I 开发者_如何学JAVAuse converter to do that. This all works fine, but when I change the language, I have to somehow update the combobox. How I can do that? ComboBox'es UpdateLayout()
and Items.Refresh()
have no effect at all.
Try calling Refresh
on the ObjectDataProvider
itself.
精彩评论