Does anyone know if you can use data binding with anonymous types in Silverlight 4? I know you can't in previous versions of silverlight, you can only databind to public class properties and anonymous type properties are internal.
Just wondering if anyone has tried it in silverlight 4?
You can... If you expose your internals.
Place this in your AssemblyInfo.cs:
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Windows")]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With