簡體   English   中英

演示設計模式

[英]Presentation Design Patterns

我一直在研究和使用演示設計模式,並且我已經成功地為WebApps實現了FrontControllerMVP等設計模式,當然還有MVC模式和ASP.NET MVC框架,這是一個很好的選擇。 但是,我想知道使用像MVP這樣的表示模式對於WinForms應用程序是否是一個不錯的選擇。 如果答案是肯定的,那么很好,如果不是和/或有一些陷阱需要注意,如果你能稍微解釋一下關於WinForms應用程序中不同表示模式的想法,那就太好了。

所有表示模式都源自 MVC。 然而,Model2 是 ASP.NET MVC 給我們的,MVP 分為 Passive View (PV) 和 Supervising Controller (SC),Presentation ZA559B87068921EEC05086CE5485E978Z 是 MVVM 給我們的。

對於 Web,

  • Model 2
  • MVP(PV和SC)

對於 Windows Forms

  • MVP(PV和SC)

對於 WPF

  • MVP(PV,SC)
  • MVVM

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.

圖 7-14 在第 374 頁,但您也可以在此處觀看。

您可能想查看以下文章,其中描述了與演示組件和 model 相關的一些流行和新設計模式。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM