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

The Archive Base Latest Questions

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

As I am further digging into MVVM and MVVM-light I recognized, that there is

  • 0

As I am further digging into MVVM and MVVM-light I recognized, that there is no MVVM-light provided base class for models.

But from my understanding, messaging and raising notifications could also happen in a model. At least in communication between models I would find that messaging would come in very handy.

So I just decided to derive my Model from ViewModelBase, even though some of the properties (like the design time ones) will be unused.

But the more I am looking at this, the more I think I have missed something. Is it considered “bad practice” to derive my Models from ViewModelBase?

And is it ok to use Messaging for Model communication?

  • 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-16T20:11:51+00:00Added an answer on May 16, 2026 at 8:11 pm

    Derive your view-model classes from whatever you like… MVVM-light offers the VieWModelBase to provide an implementation of ICleanUp – which is good for managing the life-cycle of ViewModel objects. My own choice has been to implement all scaffolding for Property Change notifications in a base class, then derive from that for model classes. About the only strong suggestions I have regarding model classes are:

    1. Once size doesn’t fit all. How you store your data may be different from how you interact with data, and ViewModel objects should be geared towards supporting interaction, not storage, and if you need to interact with the same data (Model) in two very different ways, then design two different ViewModels to support these different interactions.
    2. Do use attributes (a la System.ComponentModel) to annotate the models. You can get a lot of your validation work done this way – and validation feedback is the responsibility of the presentation layer (View + ViewModel), not the problem domain (i.e. the Model).

    Really good ViewModel classes are also usually stateless enough that they can be recycled/reused within a single user interaction, such that large data lists can be virtualized (WPF supports virtualization) to save RAM.

    Remember DRY (Do Not Repeat Yourself), KISS (Keep It Simple, Stupid!) and YAGNI (You ain’t gonna need it) – are the principles you should keep in mind above any academic design principles. I’ve litereally wasted weeks on a WPF app implementing academically perfect MVC/MVVM patterns, only to find that they detracted form the overall understandability of the finished solution. So… keep it simple! 🙂

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

Sidebar

Related Questions

I'm assuming this isn't possible but before digging further is there a way to
[EDIT: further digging revealed a different root issue. I'm rephrasing the question, but leaving
So Im trying to further my understanding of sockets, but I want to start
Further to this question and this one that I asked more recently but without
FURTHER EDIT: Given that individuals can only access the questionnaire from a seperate website,
Will there be any further resultset to process if the lookup table in the
How to prevent further execution of class if something fails in constructor. ........Worker.php.............. class
About half a year ago, I started digging into unit testing. I made my
I'm trying to get a deeper understanding of Monads. Therefore I started digging a
Further to my other question given the following classes and fluent map, is there

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.