ComboBox Enum Description Annotation #8175
-
Hello, I'm struggling with creation of ComboBox which is bound to Enum. I've found few WPF examples on the web which show how to prepare provider for ComboBox's Items. Almost everything is working fine except showing Description from the Enum's annotation. Maybe someone have ready solution for this kind of situation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi! And in your app you will have a collection of original enums, a property for selected enum, and to show description instead of blank enum name you can implement a simple IValueConverter. This value converter needs to read description from the enum value. |
Beta Was this translation helpful? Give feedback.
-
Maybe this can be some help:
|
Beta Was this translation helpful? Give feedback.
Maybe this can be some help: