c# - Issue binding to property of another view model -
i should note using prism, should not causing issue. issue follows. have 2 view models, , b. b "static" view model(containercontrolledlifetimemanager), , normal view model. has reference b. b async tasks , has list<> of results binds in xaml follows.
//this a's view, , b reference in a's view model <itemscontrol itemssource="{binding b.candidatedesignatorlist,mode=twoway}" ....etc> after b's candidatedesignatorlist has results added asynchronously, itemscontrol doesn't update unless following.
b = someunitycontainer.resolve<b>(); so basically, when @ b in debugger @ line, see candidatedesignatorlist has 3 items, getting items set, wont display in itemscontrol list until "reset" connection, though b global static view model.
i think issue binding, don't know else try, since thought setting mode=twoway make work. ideas? thanks.
Comments
Post a Comment