Generic WPF-Silverlight implementation for IValueConverter - Online Free Computer Tutorials.

'Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Thursday, June 28, 2012

Generic WPF-Silverlight implementation for IValueConverter

I originally created a simpler form of this value converter for simple conversions of Boolean properties to custom values, in particular converting Boolean to Visibility. This was published in CodeProject as "Generic WPF/Silverlight Value Converter" (http://www.codeproject.com/Articles/289495/Generic-WPF-Silverlight-Value-Converter). I got tired of recreating the wheel for slight changes in the values, and cluttering up my application with numerous value converters. Recently I was working on a new project, and really did not want to add a Boolean property for each special state. This would almost be as bad as adding a special property just for Visibility. I got the idea of adding a third customizable property to my converter. So now I have a much more flexible value converter.

Read More...

I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too. 

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


No comments:

Post a Comment