简体   繁体   中英

MVP within Winforms Form application

I have read this good article and I need to know the meaning of this statement:

MVP

Use in situations where binding via a datacontext is not possible. Windows Forms is a perfect example of this. In order to separate the view from the model, a presenter is needed. Since the view cannot directly bind to the presenter, information must be passed to it view an interface (IView).

I mean is it true that binding in WinForms isn't possible?

Besides, is it true that MVP is suitable for WinForms ONLY because:

  1. it separates the logic layer from the view
  2. The use of MVVM or MVC is not recommended

Is there another reason ?

您可以尝试将任何模式改型为WinForms,但后来发现MVP与WinForms配合最佳。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM