Minggu, 28 November 2010
Binding TextBlock, ListBox, RadioButtons to Enums
IntroductionThis post demonstrates different ways to bind WPF controls to an enum property so that changing the selected item on the control automatically updates the value of the property. Examples for a ListBox, ComboBox, a group of RadioButtons and a ListBox of RadioButtons is shown. A way to convert the enum value to a user-friendly string is also shown. Using the CodeYou have an enum
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar