ExposeAttribute and Silverlight

Nov 23, 2011 at 9:15 PM


In the documentation I read about the ExposeAttribute (which can reduce the ViewModel code significantly). Unfortunately, I also read that it is only available in WPF (because SL lacks the ICustomTypeDescriptor class.

I see that SL 5 is adding an ICustomTypeProvider class. Could this class make it possible to implement the cool ExposeAttribute in SL ?

see: http://blogs.msdn.com/b/silverlight_sdk/archive/2011/04/26/binding-to-dynamic-properties-with-icustomtypeprovider-silverlight-5-beta.aspx


Nov 24, 2011 at 6:47 AM

In WPF, we use ICustomTypeDescriptor (yes, almost the same, I had to look it up) for this, but I will definitely investigate the options. Too bad this isn't already available in SL4...

See this issue: