带控制器的 MVVM
我正在 Silverlight 中开发游戏。我已经准备好了游戏流程,图形也已处理完毕。现在,在寻找完美的后端设计时,我遇到了 MVVM。浏览了各种教程并了解了它如何与单个模块一起工作。然而,在我的计划中,我想在用户输入时加载/调用多个视图。有没有办法用一个控制器来处理我的应用程序工作流程。在下面的帖子中已经提到过: MVVM 中的控制器,如何获取信息从视图模型到它的控制器? 但我找不到任何例子。有人可以提供虚拟应用程序、阅读材料、框图吗?
I am developing a game in Silverlight. I have my game flow ready and graphics have also been taken care of. Now while searching for a perfect back-end design i came across MVVM. Went through various tutorials and have an understanding of how it would work with a single module. However in my plan i want to load/call multiple views at user input. Is there a way a single controller can handle my application workflow. It has been mentioned in the following post:
Controllers in MVVM, How to get info from viewmodel to it's controller?
But nowhere i could find an example. Can someone provide a dummy application, reading material, block diagrams?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用框架来帮助您尝试做的事情,否则您最终将编写大量代码。
我创建了类似的应用程序(一次向用户显示多个视图),并使用 Prism 来帮助我。如果您想了解它,可以浏览Prism Training Kit。
You need to use framework to help what you're trying to do, otherwise you will end up write tons of code.
I have create similar application (show multiple view to user at a time) and I use Prism to help me. If you want to learn about it, you can walk through Prism Training Kit.