Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:57:16+00:00 2026-05-11T08:57:16+00:00

MVVM is most commonly used with WPF because it is perfectly suited for it.

  • 0

MVVM is most commonly used with WPF because it is perfectly suited for it. But what about Windows Forms? Is there an established and commonly used approach / design pattern like this for Windows Forms too? One that works explicitly well with Windows Forms? Is there a book or an article that describes this well? Maybe MVP or MVC based?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:57:16+00:00Added an answer on May 11, 2026 at 8:57 am

    I have tried MVP and it seems to work great with windows forms too. This book has an example of windows forms with MVP pattern (sample payroll application). The application is not that complex but will give you an idea about how to go about creating it.

    Agile Principles, Patterns, and Practices in C#…

    You can get the source code at Source Code

    EDIT:

    There are two variations of the MVP pattern (a) Passive view and (b) supervising controller

    For complex databinding scenarios I prefer to go with the Supervising controller pattern. In supervising controller pattern the databinding responsibility rest with the view. So,for treeview/datagrid this should be in the respective views, only view agnostic logic should moved on to the presenter.

    I’ll recommend having a look at the following MVP framework MVC# – An MVP framework

    Don’t go by the name (it’s an MVP framework).

    Simple winforms MVP video Winforms – MVP

    An example of dealing with dropdown list MVP – DropDownList

    Simple treeview binding example (poor man’s binding). You can add any treeview specific logic in BindTree().

    Below is the code snippet…. not tested, directly keyed in from thought….

    public interface IYourView {    void BindTree(Model model); }  public class YourView : System.Windows.Forms, IYourView {    private Presenter presenter;     public YourView()    {       presenter = new YourPresenter(this);    }     public override OnLoad()    {          presenter.OnLoad();    }     public void BindTree(Model model)    {        // Binding logic goes here....    } }  public class YourPresenter {    private IYourView view;     public YourPresenter(IYourView view)    {         this.view = view;    }     public void OnLoad()    {        // Get data from service.... or whatever soruce        Model model = service.GetData(...);        view.BindTree(model);    } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a WPF app using MVVM. Most of my views have only xaml
I like MVVM. I don't love it, but like it. Most of it makes
Considering you have an MVVM Architecture in WPF like Josh Smith's examples How would
Although I deeply fell in love with the MVVM pattern there seem to be
I'm trying to implement a WPF application using MVVM (Model-View-ViewModel) pattern and I'd like
Most MVVM examples I have worked through have had the Model implement INotifyPropertyChanged ,
I notice that many of the WPF MVVM frameworks seem to avoid using the
I'm just getting started with the MVVM pattern in WPF and I decided that
I use MVVM architecture to decouple my application. That is, you often see something
I'm working on a Silverlight app using the MVVM pattern. My ViewModel currently consists

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.