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