(X) Hide this Join our next live webinar session by Braulio Diez - Sketchflow in Real Scenarios, on Sept 29th, 8am - 9am PDT.
Learn More | Sign Up | More Webinars by SilverlightShow

Recommended

Skip Navigation LinksHome / News / View News

Using Value Converters in Silverlight

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Sep 30, 2010
(0 votes)
Here is another post of Paul Sheriff about value converters in Silverlight 4.

Source: Paul Sheriff's Blog

When you start to bind data in Silverlight (or WPF for that matter) you will most likely have data that is in one format that you may need to convert to another format. For example if you have a decimal number (price) that is 19.95, you would want to display it as $19.95. Of course you can use a normal .NET format string to accomplish this, but you could also write some code to convert the decimal number 19.95 to a string with the dollar sign in front of it “$19.95”.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 8 and 3 and type the answer here: