Working with Converters Silverlight<br />Mahender<br />Senior Software Engineer<br />United Health Group<br />
Mahender Sarangam<br />Having 5 years of experience on .NET Technologies. Working as a Senior Software Engineer in United Health Group(UHG India Information Service Ltd.). Worked with Big Firms like Deloitte Consulting & Wipro Technology. <br />Got Technical Acquaintance on Technologies like C#, ASP.NET,AJAX, LINQ, Silverlight, WPF,WCF ,SQL Server, Team Foundation Server(TFS) and SharePoint Technology. <br />MCTS Certified in Web Technologies.<br />
Converters<br /><ul><li>Silverlight has an excellent data binding engine that allows data to be bound through XAML or programmatically with codeand at time there is necessity of data need to be modified or tweaked.
Most of the today LOB in data binding to format the data displayed in the UI.</li></li></ul><li>Every time We show a date or a price in a format user can understand. Silverlight and WPF are using the so called converters to apply custom logic to a binding<br />Before Applying Converter After Applying converter<br />
How to Implement<br />Value converters are extremely powerful. They implement IValueConverter, and they have two methods: Convert and ConvertBack.<br />Value converters are valuable in minimizing the code required directly in the UI and in providing reuse of conversion logic<br />They Are 2 types of Converter <br />1) Value Converter<br />2) Type converters<br />They are used throughout the .NET framework to handle translation of one CLR type to another<br />