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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:19:47+00:00 2026-06-13T16:19:47+00:00

What is the basic definition of the Model, View and ViewModel objects in WPF’s

  • 0

What is the basic definition of the Model, View and ViewModel objects in WPF’s MVVM design pattern? What are their responsibilities, what each of them should and shouldn’t do?

  • 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-13T16:19:48+00:00Added an answer on June 13, 2026 at 4:19 pm

    Model:

    1. Represents the Data.
    2. The Entity.
    3. Model classes are non-visual classes that encapsulate the application’s data and business logic.
    4. They are responsible for managing the application’s data and for ensuring its consistency and validity by encapsulating the required business rules and data validation logic.
    5. The model classes do not directly reference the view or view model classes and have no dependency on how they are implemented.
    6. The model classes typically provide property and collection change notification events through the INotifyPropertyChanged and INotifyCollectionChanged interfaces.
    7. This allows them to be easily data bound in the view.
    8. Model classes that represent collections of objects typically derive from the ObservableCollection<T> class.
    9. The model classes typically provide data validation and error reporting through either the IDataErrorInfo or INotifyDataErrorInfo interfaces.
    10. The model classes are typically used in conjunction with a service or repository that encapsulates data access and caching.
    11. Not required to know where it gets its data from i.e from a WCF service. WCF RIA Services, etc.
    12. May contain validation.

    View:

    1. The view is a visual element, such as a window, page, user control, or data template.
    2. The view defines the controls contained in the view and their look and feel, visual layout and styling.
    3. The view references the view model through its DataContext property.
    4. The controls in the view are data bound to the properties and commands exposed by the ViewModel.
    5. The view may customize the data binding behavior between the view and the view model.
      For e.g, the view may use value converters to format the data to be displayed in the UI, or it may use validation rules to provide additional input data validation to the user.
    6. The view defines and handles UI visual behavior, such as animations or transitions that may be triggered from a state change in the view model or via the user’s interaction with the UI.
    7. The view’s code-behind may define UI logic to implement visual behavior that is difficult to express in XAML or that requires direct references to the specific UI controls defined in the view.

    ViewModel:

    1. The ViewModel is a non-visual class and does not derive from any WPF or Silverlight base class.
    2. It encapsulates the presentation logic required to support a use case or user task in the application.
    3. The ViewModel is testable independently of the view and the model.
    4. The ViewModel typically does not directly reference the view. It will have UI Friendly Entities, UI State, Actions and Public properties that are bound to a View.
    5. It implements properties and commands to which the view can data bind.
    6. It notifies the view of any state changes via change notification events via the INotifyPropertyChanged and INotifyCollectionChanged interfaces.
    7. Interacts with View with various Commands.
    8. The view model coordinates the view’s interaction with the model.
    9. It may convert or manipulate data so that it can be easily consumed by the view and may implement additional properties that may not be present on the model.
    10. It may also implement data validation via the IDataErrorInfo or INotifyDataErrorInfo interfaces.
    11. The view model may define logical states that the view can represent visually to the user.
    12. Invokes services to communicate outside the MVVM triad.

    Source: http://code.msdn.microsoft.com/Design-Patterns-MVVM-Model-d4b512f0

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

Sidebar

Related Questions

When writing a basic c program. #include <stdio.h> main(){ printf(program); } Is the definition
I know basic definition of recursive function.....but i want to know its impact on
I've got a pretty basic static method on an ActiveRecord model: #./app/models/comic.rb class Comic
Here's the definition of the LogOn post action method [HttpPost] public ActionResult LogOn(LogOnModel model,
A basic definition and example and a few references for X-Macros is given in
Basic question here - I have many lines of code that look something like:
Basic question here. I started using ARC and am not sure if I should
Basic doubt...If QTP generates vbscript code as we record actions, can't we directly write
Basic C# syntax question: So I have this class public class BrandQuery<T> : Query<T>
Basic question - is it possible to access the current Page from a static

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.