.netwinformsdesign-patternspresentation-layer

Presentation Design Patterns


I've been studying and working with presentation design patterns for a while, and i have successfully impleneted design patterns like FrontController, MVP etc. for WebApps, and of course the MVC pattern and the ASP.NET MVC framework which is a great choice. however, i was wondering if using a presentation pattern like MVP would be a good choice for WinForms applications. if the answer is yes then great, if not and/or there are pitfalls to be aware of it would be great if you could explain the ideas a little bit about different presentation patterns in WinForms applications.


Solution

  • All presentation patterns derive from MVC. However, Model2 is what ASP.NET MVC gives us, MVP is devided in Passive View (PV) and Supervising Controller (SC) and Presentation Model is what the MVVM give us.

    For the Web,

    For the Windows Forms

    For the WPF

    There is a very nice figure from the book "Microsoft .NET: Architecting Applications for the Enterprise" which presents MVC, MVP, MVVM and what can be fit in Windows Forms, Web Forms, ASP.NET MVC.

    The figure 7-14 is on page 374, however you can also watch it here.