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

  • Home
  • SEARCH
  • 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 544539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:39:56+00:00 2026-05-13T10:39:56+00:00

I have been looking into MVVM recently and I seem to get the overall

  • 0

I have been looking into MVVM recently and I seem to get the overall idea. There are a couple of niggly bits though that I do not fully understand and was hopping to get some answers here, cheers!

  1. Is it incorrect to use one data model for the whole application. Usually if I am creating a small utility I would have all of the logical data in one class. This means i can have somethings like the following:

    DataStore myData = new DataStore;
    
  2. If it is OK to have one data model is it ok to have more than one model view, say one representing each window or view (This is how I envision MVVM working).

  3. Given then above if one has multiple model views it would seem that the model would have to be declared before the first window (view), where should it be declared? should the model be passed via a reference to subsequent model views? Would this not be a source of coupling as the window or page (view) would need to know about the model to pass it to its model view since the view instantiates the model view.

Sorry if this is a lot of questions, I get the idea of MVVM in a single window or page sense but once I add multiple views my system breaks down. I can get it to work with seperate models accessing an outside source to grab its data but if the data needs to persist between views I get lost.

Thanks to all that take the time to respond!

  • 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-05-13T10:39:56+00:00Added an answer on May 13, 2026 at 10:39 am

    Some thoughts:

    1. Simple applications don’t necessarily require the complexity of MVVM – you may be able to get away with eliminating the ViewModel – and using the underlying model directly. Just be careful that you don’t stretch this approach to the breaking point – as WPF is very reliant on things like INotifyPropertyChanged, and DependencyProperties. You don’t want to start merging these into your model classes unecessarily.

    2. Yes, it’s ok. However, … keep in mind it’s simpler if there is only one Model instance – otherwise you need to deal with merging changes from multiple views when you are going to save (or losing one version’s changes). If the ViewModels refer to the same underlying model this can be workable.

    3. You cannot avoid a certain level of coupling in MVVM. However, (if I understand your question correctly) introducing coupling between ModelViews is probably a bad idea – since it is defeating the purpose of making each a discrete perspective on the model optimized for a particular view.

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

Sidebar

Related Questions

I have been looking into MVVM design patterns with WPF for a project. I
I have been looking into backbone.js and I can't seem to figure out how
I have been looking into CruiseControl configuration recently (I'm a complete CC noob) and
I've been looking into memory management a lot recently and have been looking at
Recently I have been looking into OpenGL, and I've got up to the stage
I have been looking into using tools for UI testing automatically and seem to
I have been looking into game development recently and my first programming language is
I have been looking into AJAX technologies for my company recently. I am having
I have been looking into the Google Objective-c API, there is a small amount
I have been looking into AWS spot instances for some jobs however instead of

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.