Silverlight 4 Data Binding with anonymous types

后端 未结 1 866
别那么骄傲
别那么骄傲 2020-12-03 01:23

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 cl

相关标签:
1条回答
  • 2020-12-03 02:20

    You can... If you expose your internals.

    Place this in your AssemblyInfo.cs:

    [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Windows")]
    
    0 讨论(0)
提交回复
热议问题