I'm trying to create classes dynamically to import XAML binding. It's working well in WPF, but not in Windows Phone 8. Apparently, Windows Phone 8 does not support binding to a dynamic
data context (it just doesn't try to invoke any of the dynamic methods and properties).
So I thought I'd go the longer route, and emit classes dynamically. Unfortunately, I couldn't find any way to emit IL in Windows Phone 8. The System.Reflection.Emit
namespace exists, but contains no emitter helper classe. System.AppDomain
doesn't exist at all, so I can't create a new assembly to place my newly generated classes in.
I noticed DynamicMethod
is supported, but I need to generate entire classes, not just an anonymous method here and there. Is IL emitting completely forbidden in Windows Phone 8?