阅读背景:

如何使用MVVM-Light SimpleIoc持久保存单个业务对象

来源:互联网 

I have a complex business object, which I create at user login, and need to persist it throughout most viewmodels of the application. What I can do is send it with the messenger each time I create a new viewmodel, that works, but it's too much code, which is all the same every time, and I believe it is not a correct way of doing things. What I did in windows forms - I had all forms inherit from a base class, that has this business object as a member, and is included in constructor. I believe, SimpleIoc may be used for the problem. Well, here I have a complex business object, which I creat




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

分享到: