I have made a class that inherits DynamicObject and implements the ICustomTypeDescriptor interface that allows me to expose dynamic properties at runtime, which I can bind to.
The problem is that the XAML designer doesn't recognize this properties on the Intellisense for the Binding path, when I use this object as a design-time view model. It only recognize statically defined properties.
So I made a custom type with the TypeBuilder that create a class in run time that have the desired properties, still, the designer doesn't recognize this properties, even when they are technically statically defined
The properties Nombre and Edad where dynamically generated by a TypeBuilder as you can see, the debugger doesn't have any problem with this:
How can I expose dynamically generated properties to the XAML designer intellisense?
Thanks.
Aucun commentaire:
Enregistrer un commentaire