Before I write, I'm going to ask the company to write a client with WPF, I've played WinForm before, I didn't write a serious project with WPF, I took over the WPF project and started studying this stuff, MVVM, custom controls, and so on. Perhaps it was winfrom preconceived thought that led me to think that WPF could be developed in accordance with the winfrom pattern, ViewModel, not to provide data, but after I looked at it, I found that the MVVM pattern development of WPF was simply an artifact. Well, the nonsense is not much to say, the following starts today's topic.
- Initial knowledge of the MVVM pattern of WPF
- Model: Entity object (do not make too many explanations.) )
- View: The UI layout in WPF.
- ViewModel: View model.
- The benefits of MVVM
- What MVVM is going to do.
- Plain English says the most basic thing to do with the MVVM framework is data binding and command binding. Because a large number of events are generated in the page UI, you also need to bind the events to commands in MVVM.
Write here today, if the younger brother wrote a question, welcome you Daniel many correct me.
To be continued before the end ... will continue to update tomorrow.
The ViewModel of WPF