5
Shouts

Binding to Dynamic Properties with ICustomTypeProvider (Silverlight 5 Beta) - Silverlight SDK - Alexandra Rusina

published 751 days, 17 hours, 23 minutes ago posted by NickolayNickolay 752 days, 18 hours, 57 minutes ago
Thursday, April 28, 2011 9:32:47 AM GMT Wednesday, April 27, 2011 7:58:34 AM GMT

Silverlight 5 Beta introduces a new ICustomTypeProvider interface that enables data binding to objects the structure of which cannot be known until runtime. This is a common problem when you work with data in any format from databases to metadata or XML files to JSON objects. New attributes or new columns can be added over time and prior to Silverlight 5 you needed to update and recompile your source code if you wanted to show this new data through data binding in a Silverlight application.

With ICustomTypeProvider you can add properties to objects on the fly and then databind to these newly created objects. The interface is pretty simple:...

category: Metro | clicked: 6 | | source: blogs.msdn.com | show counter code
tags: SL, Silverlight, SL5, Silverlight 5 Beta, Beta, Silverlight 5