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 8072819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:09:02+00:00 2026-06-05T14:09:02+00:00

My questions are: Can/Should a ViewModel support multiple Views ? Can/Should a View be

  • 0

My questions are:

  1. Can/Should a ViewModel support multiple Views ?
  2. Can/Should a View be supported by multiple ViewModels? ( I believe answer to this question is Yes).

What is the best practice for such a situation where for a relatively small module you have relatively small view(s). So, in that situation should we create multiple ViewModels for each view or shall we use a single ViewModel to serve all the view(s) within the same module. Note: number of views within the smaller module is restricted to 5-6.

  • 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. Editorial Team
    Editorial Team
    2026-06-05T14:09:03+00:00Added an answer on June 5, 2026 at 2:09 pm

    Here is my view on this –

    1. Yes, same ViewModel can be used with multiple views; e.g. say you have a CustomerViewModel having details of a customer and some commands, you can use this ViewModel with a view having a DataGrid to display all the customers(so an ObservableCollection<CustomerViewModel> will be used) and also use the same ViewModel with a view having a form to edit the details of a single customer.

    2. It depends, but generally No. A view can depend on multiple ViewModels if it comprises of multiple views; say, a single Window having multiple views. e.g. A dashboard having list of customers, a form to add a new customer, a section to display products etc.;
      but even in this case it’s always better to create a single parent ViewModel which will contain instances of other sub view models.

      I always prefer to have one ViewModel for a single view and try to design my application that way.

    But yes it all depends on the application and how you design your views and viewmodels. In MVVM you first design your Models and ViewModels based on business logic and then use them with your views.

    Also have a look at this similar question – ViewModel per View or per Model?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So this should be a real easy question but I can't seem to find
This should be a simple question, but I can't get it to work :(
This should be a simple question, but I just can't recall the relevant API.
This should be a simple question, but I just can't seem to figure it
I'm currently developing and I came up to the following question: How can/should I
Newbie-ish questions ahead: Where should I put my View Model declarations? I created a
I have a Question: Should I use databinding whenever I can? I will explain
Following on from this question MVC3 - Should I design my Model to be
I am an newbie in wpf and mvvm. I can't answer a base question...
After reading this question ASP.NET MVC: Nesting ViewModels within each other, antipattern or no?

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.