silverlight - Databinding in the same Control on 2 different DataContext -


in silverlight i've page controls , listbox.

i'm using mvvm , datacontext of listbox defined this. in model have property productcommand , productcommand object contains list of product named products.

my listbox in grid datacontext defined productcommand property. , databinding listbox set products (binding="{product, mode=twoway}").

in model class have selectedproduct property, , want bound selecteditem property of listbox.

how can that?

i have had similar problems found blog article dan wahlin on data context proxy helpful.

of course in silverlight 5 ancestor binding provide means solve issue.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -