我有一个应用程序,可以说有一些“模块”。
每个用户都有权查看每个模块,有些用户看不到所有模块,有些则可以看到所有模块。
我想加载 XAP 文件并在我的应用程序中加载这些视图模型(带有视图)。
如何使用 Galasoft MVVM light 和 DeploymentCatalogService 来做到这一点?
参考:
http://mvvmlight.codeplex.com/
http://codebetter.com/glennblock/2010/03/08/building-hello-mef-part-iv-deploymentcatalog/
它甚至可能还是我在这里浪费时间?如何在定位器中初始化它?
因此,让我在这个示例用户案例中解释这一点:
- 应用程序中的用户登录
- 根据用户权限加载 XAP 文件(用户模块、组模块、文章模块、客户模块、会计模块等...)= ViewModel +
- 用户单击一个的视图模块和 ViewModel 被启动,
- 用户使用应用程序,
我很高兴目前在一个 silverlight 项目中拥有所有视图模型。
I have an application wich has some "modules" so to speak.
Each user has permissions to see each module, some don't see all some see all.
I want to load XAP files and load those view models(with views) in my application.
How do I do that with Galasoft MVVM light and DeploymentCatalogService?
Reference:
http://mvvmlight.codeplex.com/
http://codebetter.com/glennblock/2010/03/08/building-hello-mef-part-iv-deploymentcatalog/
Is it even posible or am I wasting my time here? How to initialize this in the locator?
So let me explain this in this example user case:
- User logs in
- application loads XAP files depending on user permissions (users module, groups module, articles module, customers module, accounting module etc...) = ViewModel + Views
- user clicks on one of the modules and the ViewModel gets initiated
- user uses application and is happy
I currently have all view models in one silverlight project.
发布评论
评论(1)
查看这些博客:
http://www.davidezordan.net/blog/?p=1734,
http://www.davidpoll.com/2010/02/01/on-demand-loading-of-assemblies-with-silverlight-navigation-revisited-for-silverlight-4-beta/
Check out these blogs:
http://www.davidezordan.net/blog/?p=1734,
http://www.davidpoll.com/2010/02/01/on-demand-loading-of-assemblies-with-silverlight-navigation-revisited-for-silverlight-4-beta/