Search code examples
wpfsilverlightmodel-view-controllerdata-bindingmvp

Is Databinding a good way to connect a view to a model


I am thinking about the design of a WPF or Silverlight application. I am planning to use MVC (or another such design pattern)

Witch ever of the design patterns I choose, I need to connect to view to the model (or presenter) – is databinding a good way of doing this?

(In the past with WinForms applications I have found that Databinding give lots of problem in the long run and does not fulfil its promise. It is the same with WPF and Siverlight?)


Solution

  • I recommend you take a look at the Model-View ViewModel (MVVM) pattern. Here is a very good video you should take a look at: Jason Dolinger on Model-View-ViewModel. Two-way data binding in WPF is very powerful.