Search Wiki:
Resource Page Description
Problem statement: Silverlight binding to objects with properties unknown at compile time.

In some scenarios a shape of a type is not known at the compile time. This is quite common for instance in multi-tenant environments and for applications that support customizations through metatada.

Imagine a multi-tenant Silverlight application that defines a base Member type with some predefined properties, such as Name and Address. Then a tenant can customize this type - without writing code – by defining additional properties, for instance HomeAirport. The problem is how to bind Silverlight controls to such dynamic properties.

This project shows how to solve the problem by emiting at runtime a custom type that derives from the base class and have strongly typed properties that represent the per-tenant defined custom properties.

Last edited May 22 2009 at 8:44 PM  by Grzegorz, version 2
Page view tracker