开发者

Refreshing WPF ComboBox

开发者 https://www.devze.com 2023-02-17 02:44 出处:网络
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 wo

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消