Silverlight IValueConverter vs. TypeConverter

Posted by: Bryant Likess Blog, on 24 Nov 2008 | View original | Bookmarked: 0 time(s)

This is something that wasnt clear to me so I decided to blog about so that I could fully understand it. Both IValueConverters and TypeConverters are used to do conversions (imagine that!), but they are used differently. TypeConverters are used by the Xaml parser during parse time to convert values in the Xaml into values in CLR objects. So when you set Height=100, height isnt a string so it has to be converted to a double. This is done using a type converter. Type converters are also one-way since...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: XAML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2757 | Hits: 175

Similar Posts

  • My History of Visual Studio (Part 10, final) more
  • My History of Visual Studio (Part 9) more
  • Silverlight MVP more
  • Mixing Silverlight and MS ASP.NET AJAX 3.5 in the same web application. more
  • Visual Studio Add-In vs. Integration Package Part 1 more
  • Building Silverlight 2 and 3 applications with Visual Studio 2008 more
  • Why Embedded Silverlight Makes Sense more
  • Binding a ComboBox to Enum Values with RadControls for Silverlight more
  • VS2010 Beta 1 - It's Better on Metal more
  • Clearing some air in Silverlight, Blend and Visual Studio Beta land more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD