Recommended

  • Silverlight 4 Podcast Pack with Tim Heuer
  • Building Modular Silverlight Applications
  • Prism -  10 Things to Know
  • Securing Silverlight Application and WCF Service using ASP.Net Authentication Techniques
  • Model– View – ViewModel in Silverlight
Skip Navigation LinksHome / News / View News

How-to Q&A: Is There an Easy Way to Create Value Converters in Silverlight?

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on May 05, 2010
(0 votes)
In this article for the Visual Studio magazine Kathleen Dollard talks about value converters in Silverlight.

Q: I like the capabilities of value converters in Silverlight, but they're really a pain to write. I'm creating one for different situations, each with several conditions. For example, one converter is if something is to be made visible on true, and another is to be visible when the bound value is false. Is there a way to make this easier?

A: Value converters are extremely powerful. They implement IValueConverter, and they have two methods: Convert and ConvertBack. Value converters are valuable in minimizing the code required directly in the UI and in providing reuse of conversion logic.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 7 and 1 and type the answer here:

Welcome to SilverlightShow - the portal for Silverlight resources. You can find here daily news (RSS), articles authored exclusively for SilverlightShow (RSS), showcases, tips, books, and much more! Follow us on twitter.
Join the discussions and sharing of experience by becoming a member. Or, find out the top 10 reasons to sign up. Thanks for stopping by! (hide this)