Yes, this is a misconception, according to the idea of MVVM.
是的,这是一种误解,根据MVVM的想法。
MVVM & Serialization - How do I access the instances of classes?
MVVM和序列化-如何访问类的实例?
I have been looking into MVVM design patterns with WPF for a project.
我一直在寻找到MVVM设计模式与WPF中的一个项目。
In my opinion, a basic MVVM framework really only requires two things.
依我看,一个基本的MVVM框架真的仅仅只需要两件事情。
Is there a better way than using static classes or singletons for MVVM?
还有比使用静态类或单身MVVM更好的办法?
Extends data binding to methods, making MVVM architectures simple and intuitive.
将数据绑定扩展为方法,使得MVVM架构更加简单和直观。
For example, using command, using data binding, and using MVVM pattern and more.
例如,使用命令,使用数据绑定,使用MVVM模式等等。
On the other side you are mixing two concepts here, namely Dependency Injection and MVVM.
在另一边你是混合两个概念,即依赖注入和MVVM。
Navigation is a common issue to tackle. How do you manage navigation from an MVVM application?
导航是一个要处理的常见问题,你如何从一个MVVM应用程序中管理导航呢?
I first recommend that you study and understand the MVVM pattern and how it works thoroughly.
我首先建议你学习和了解MVVM模式和它是如何工作的深入。
To illustrate the roles of the different layers in MVVM let us consider a game of Tic-Tac-Toe.
为了说明不同层次的角色在MVVM让我们考虑一个游戏井字。
Or are you actually asking if there is some "formalized" MVVM framework for the Compact Framework?
或者你真的问一些“形式化”MVVM框架紧凑的框架?。
I would highly recommend using the MVVM design pattern, since this is the recommended approach for WPF.
我强烈推荐使用MVVM设计模式,因为这是为WPF的推荐方法。
One of my favorites is the Prism Documentation, or specifically, the MVVM section of the Prism Documentation.
是我喜欢的一个棱镜的文档具体的,棱镜的MVVM部分文档。
Building the Mobile Client - steps taken to build the application including how to implement MVVM on Windows Phone 7.
移动客户端的构建——构建应用程序要完成的步骤,包括如何在WindowsPhone7中实现mvvm ?
It's when you hit specific situations such as showing a dialog box or triggering an animation that MVVM may seem confusing.
当你遇到一些特殊的情形比如显示一个对话框或是触发一段动画,MVVM可能看起来有点令人迷惑。
I've heard MVVM described as an implementation of Presentation Model designed specifically for WPF (and later, Silverlight).
我还听过把MVVM描述成为WPF(后来还有Silverlight)特殊设计的表示模型的一个实现的说法。
How do you handle a combo box used for selection of a single, or multiple, items with MVVM? It's actually fairly straightforward.
你如何用MVVM来处理一个用来单选或多选的组合框呢?
That is beyond the scope of this post to cover in detail, but I'd like to tackle a few common scenarios and how I've solved them with MVVM.
但是我还是很愿意去处理一些常见的场景并告诉大家我是如何使用MVVM解决这些问题的。
If you answered "yes" to any of these questions, these are just a few of the benefits that using the MVVM model can bring for your project.
如果对于任意一个问题你的答案都是YES,那么使用MVVM模式将能够给你的项目带来诸多益处。
Controller - the MVVM pattern does not mention a controller but WAF contains one, having the responsibility to direct the flow of the application.
Controller—MVVM模式中没有提到控制器,但是WAF中包含了一个,它的职责是指引程序的流向。
I've seen a few people trip over how this can be implemented using both MVVM and the restriction by Silverlight that all code must be asynchronous.
我看到很多人被如何用MVVM和Silverlight的限制来实现所绊倒,Silverlight中要求所有的代码都是同步的。
If you want to stay "pure" to MVVM, in general, it'd be better to build a converter, which keeps the logic completely within the presentation layer (View).
如果你还想留下来“纯”MVVM,一般来说,最好建立一个转换器,使逻辑完全在表示层(视图)。
Let's get a little more specific and look at how this would be implemented in a sample application. Here is what an X-ray of a sample MVVM set up may look like.
让我们做一点更加特别的改变,然后看一看在示例程序中这将是如何被实现的,这里是一张MVVM建立后的透视图?
Because data binding via WPF is a loose coupling between the binding view and the bound-to ViewModel, you achieve the seperation that drives people to use MVVM.
因为数据绑定通过WPF之间是一种松散耦合的绑定视图和绑定到视图模型,你实现驱动人们使用MVVM的分离。
Because data binding via WPF is a loose coupling between the binding view and the bound-to ViewModel, you achieve the seperation that drives people to use MVVM.
因为数据绑定通过WPF之间是一种松散耦合的绑定视图和绑定到视图模型,你实现驱动人们使用MVVM的分离。
应用推荐