阅读背景:

ViewModels应该被不同的视图重用吗?如果是的话,何时?

来源:互联网 

From what I have read, it seems to be considered a best practice in MVVM for each View to have its own corresponding ViewModel, which makes sense, since the ViewModel is supposed to be the model of the View. Generally, reuse of ViewModels by different Views seems to be discouraged. Is this always the case? If not, what are the general guidelines for determining whether or not a ViewModel should be reused in this manner?From what I have read, it seems to be considere




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: