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
Post a Comment