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

More from Ivan Dragoev

  • Saving Snapshots to PNG in Silverlight 4 and the WebCam
  • Silverlight Hosting in WPF
  • Silverlight 4 – WebCams.OnceMoreWithAudio()
  • Drawing Farseer Physics Vertices and Body Center in Silverlight
  • WCF RIA Services – Dynamically Create a Criteria on the Client-side
Skip Navigation LinksHome / News / View News

Silverlight Value Converter

+ Add to SilverlightShow Favorites
0 comments   /   posted by Ivan Dragoev on Aug 17, 2009
(0 votes)

Silverlight provides extremely powerful data binding engine. However, there some situation where the data needs to be additionally modified and value converters is the solution. Digg in value converters with Dan Wahlin’s article So What’s a Silverlight Value Converter Anyway?

When you’re binding data to controls there will be times when the data needs to be modified or tweaked some on the way into a control or as the data leaves a control and goes back to the source property (during a TwoWay binding for example). Sure, you can always write code to change a given value, but in many cases it’s much easier to write a simple value converter instead that can be re-used. In this post I’ll walk through creating a value converter and then show the code for a few of the value converters I find myself using fairly frequently.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 8 and 2 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)