Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 3 results for Value Converters.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  May 05, 2010 (1 month ago)
    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.



  • 0 comments  /  posted by  Silverlight Show  on  Mar 19, 2010 (3 months ago)
    David Anson demonstrates how to simply and flexibly create a grouped list of items by using IValueConverter.

    A customer recently asked how to implement a simple "grouped ListBox" experience in Silverlight (now available in desktop, mobile, and extra crispy flavor!), so I dashed off this sample to show one way that's pretty easy to work with.

  • 0 comments  /  posted by  Ivan Dragoev  on  Aug 17, 2009 (10 months ago)

    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.


Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)