MVVM轻商业应用?
我想创建一个新的 Silverlight 业务应用程序,即使用 MVVM Light。采取哪种方式:使用 Visual Studio 创建业务应用程序,然后手动添加 MVVM 所需的所有引用和文件,或者其他方式:使用 MVVMLight 模板创建项目,然后添加导航和文件以使其成为“业务应用程序” ? 谢谢 罗恩
I would like to create a new Silverlight Business Application, that is using the MVVM Light. Which way to go: Create the business app with Visual Studio, and manually add all the references and files I need for MVVM, or the other way: create project using MVVMLight template, and add the navigation and files to make it "business app"?
Thanks
Ron
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为这取决于您的喜好。
我对 MVVM Light 一无所知,但在创建商业应用程序后,我删除了一些内容(例如导航布局),因为我不喜欢它们。
所以我认为你应该选择你喜欢的方式。最终结果将是一样的。
I assume this is a matter of what you prefer.
I dont know anything about MVVM Light, but after I create a buisness application I delete some stuff (like the navigation layout) because I dont like them.
So I think that you should choose whatever way you like. In the end the result will be the same.
如果您是从头开始,那么很难找到任何理由不从 MVVMLight 项目开始。
但无论如何,差异都是微不足道的,所以你总是可以抛硬币。
If you're starting from scratch, it's hard to see any reason why you wouldn't start with the MVVMLight project.
But the differences are trivial anyway, so you could always flip a coin.
您好,这取决于您想要使用 MVVMLite 的哪些功能。有不同的程序集可供参考。例如,如果您的应用程序只使用基本功能,我们可以直接引用 GalaSoft.MvvmLight.WPF4。如果你想使用EventToCommand,你只能引用GalaSoft.MvvmLight.Extras.WPF4和System.Windows.Interactivity等。我更喜欢引用我自己的程序集,就像“MVVMLite”的名称一样,我想保留我的应用程序“精简版”也。希望有帮助。
Hi think that's depending on what features do you want to use with the MVVMLite. There are different assemblies that for referencing. Such as if your app just use basic functionality, we can just reference GalaSoft.MvvmLight.WPF4. If you want to use EventToCommand, you can only referent GalaSoft.MvvmLight.Extras.WPF4 and System.Windows.Interactivity etc. I prefer reference the assemblies my self for just as the name of "MVVMLite", I want to keep my app "lite" too. Hope it helps.