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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:59:03+00:00 2026-06-09T22:59:03+00:00

At my work i’m assigned to a WPF project implemented using MVVM pattern. It

  • 0

At my work i’m assigned to a WPF project implemented using MVVM pattern. It has Views with zero code-behind, which is cool. It uses a data-model generated by Entity Framework as the Model (with some other classes), which i doubt to be a proper approach. But the thing that bugs me most is that it has the ViewModel as the thickest layer where all the business logic and application/operation code resides.

Now i’m a novice in WPF/MVVM, but my understanding about the MVVM pattern says that the ViewModel is ONLY supposed to provide with the means to the View so that it can consume the Model, which makes it the thinnest layer of all and my business logic and application/operation codes should reside somewhere else.

I’d really appreciate if anyone can help me out. Am i right or wrong about the purpose of the ViewModel? Should i put my business logic and application/operation codes somewhere else, or just consider the ViewModel as my Business Logic Layer?

  • 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-09T22:59:05+00:00Added an answer on June 9, 2026 at 10:59 pm

    Yes I agree with not having business logic in the view model unless it’s very simple math calculation. The company I work at likes to keep all the business logic in the model. I personally think there should be a service layer in your project that handles all this logic though. But yes the view model should concentrate on the view, getting and sending input, preferably updating values/properties by the INotifyPropertyChanged interface. I like to think of the view model as a “Crossing Guard” at a school directing traffic. 😛
    – Hope this helps

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

Sidebar

Related Questions

I work on an ASP.Net project which we build with VS 2010. We use
Work on C# Desktop project,I have an account on paypal ,From my desktop application
work on asp.net vs 05 C#.Master page header contain the bellow code <script type=text/javascript
work on SQL Server 2000. want to Automated Email Notifications using SQL Server Job
Work on this small test application to learn threading/locking. I have the following code,
I work with unordered_set . Here it's written that it has a reserve function
At work our end-users are on Windows XP and using Outlook Express. Whenever a
I work with a client that is using purchase orders, and a custom order's
I work with DefaultMutableTreeNode , and it has methods depthFirstEnumeration() , breadthFirstEnumeration() and children()
I work on writing the excel Add-In using Excel Interop. I want to get

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.