Source
www.codeproject.com (The Code Project), posted 2010-05-18
Added By
BillHenn on 2010-05-18
Vitals
- 8423 total views
Summary
Shows how to bind an enum to radiobuttons in Silverlight/WPF.
Excerpt
"Earlier today, I was working on a new form for my Silverlight application, and I realized that I needed to bind an Enum to a group of RadioButtons. Being a highly skilled, advanced software engineer, I rolled up my sleeves, put on my thinking hat, and.... attempted to to Google the solution. I knew what the basic solution should look like in that I was sure a creative converter solution would be involved, but I was looking to save some time and effort. What I found online however, was very disappointing. I wasn't the first person to face this situation and ask about it, but the messages I read on the forums all seemed to follow a common theme... "It can't be done". Everyone recommended that you simply handle the situation by using the code-behind and manually massaging the state of the controls as required. I don't know about you, but I know the sweet smell of bull droppings when I smell them, and this advice just reeked."
Full Link
http://www.codeproject.com/kb/silverlight/bindingradiobuttons.aspx
About The Code Project
The Code Project is a community of software development and design developers joined together with certain common goals: to learn, to teach and to have fun programming. Developers from all over the world come together to share source code, tutorials and knowledge for free to help their fellow programmers. It is extremely popular and is one of the best places on the web to look for open source implementations of .NET control, components, and techniques. http://www.codeproject.com/
The WPFpedia resource guide has 238 total links to this site.
Comments
There aren't any comments yet for this resource. Be the first to add one!
Add a Comment
Please log in to post comments.