How to have multiple pairs “View-ViewModel”?

前端 未结 3 1590
伪装坚强ぢ
伪装坚强ぢ 2020-12-03 15:22

I am building an application that is based on MVVM-Light. I am in the need of creating multiple instances of the same View, and each one should bind to its own ViewModel.

3条回答
  •  悲&欢浪女
    2020-12-03 15:42

    I used the naming system of the unity container.

    See "How to distinguish multiple view/view model pairs using unity container".

提交回复
热议问题