dynamic - Binding ExpandoObject in Silverlight -


in wpf, can bind against expandoobject , other dynamic types:

    dynamic o = new expandoobject();     o.foo = "hello";     datacontext = o;  <textblock text="{binding foo}"/> 

this doesn't work in silverlight 5. there way make work or have links issue?

in silverlight 5 didn't add default mechanism binding dynamic objects , instead added new interface icustomtypeprovider. , interface wasn't added expandoobject either, expando should able use indexer binding since idictionary<string, object> implements inotifypropertychanged.

<textblock text="{binding [foo]}"/> 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -