binding a command inside a listbox item to a property on the viewmodel parent

后端 未结 7 2103
北海茫月
北海茫月 2020-12-15 18:42

I\'ve been working on this for about an hour and looked at all related SO questions.

My problem is very simple:

I have HomePageVieModel:

Home         


        
7条回答
  •  無奈伤痛
    2020-12-15 19:20

    try something like this

    he can't find your command binding inside the listbox because you set a diffrent datacontext than the viewmodel for that listbox

提交回复
热议问题