WPF> Using RadioButtonList style. I want to display user friendly enum strings. how?

Posted by Saghar on Stack Overflow See other posts from Stack Overflow or by Saghar
Published on 2010-04-21T17:26:57Z Indexed on 2010/04/21 18:13 UTC
Read the original article Hit count: 210

Filed under:

Hi WPF lovers, I want to display all the possible enum values as Radio buttons. I am using popular RadioButtonList style to display the radiobutton from my enum using DataProvider in a Listcontrol. I can get all the radio buttons but the text appear with the radio button is not user friendly. I am using the following method.

http://social.msdn.microsoft.com/forums/en-US/wpf/thread/5137aabc-bb3a-478a-9438-bc93dd9cc0ac/

I want to show "A ball" instead of "a" and "B ball" instead of "b"

I thought about using converter. But where to use convert. Or any other way to display user friendly values?

As this style is very common, thats why I am not writing whole code. If anything not clear, please ask. I have already invested about 5 hours on this problem.

© Stack Overflow or respective owner

Related posts about wpf