torsdag 13. august 2009
Binding ComboBox to enum
Wow.. That did take me a lot of googling to figure out! I finally I ended up with the sln from this post. Key findings is that you can't use the enum as an ItemsSource (not a IEnumerable), so we need to wrap it in a collection class. The link shows a nice generic EnumCollection.
Abonner på:
Legg inn kommentarer (Atom)
Ingen kommentarer:
Legg inn en kommentar