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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:07:21+00:00 2026-05-16T11:07:21+00:00

I am trying to use MVVM in my WPF application which displays data from

  • 0

I am trying to use MVVM in my WPF application which displays data from a class in the business logic layer called ‘Employee’ with a property ‘Salary’. I have a simple XAML window with a text box with binding to the Salary property in a ViewModel class ‘EmployeeViewModel’. The ViewModel implements INotifyPropertyChanged so that when the Salary property of the EmployeeViewModel changes, the value in the XAML text box also changes. All that works fine.

Now, the Salary property of EmployeeViewModel gets its value from the Salary property of the Employee class. However, if the Salary value of the Employee class is changed by some other procedure going on in the business logic layer, it does not automatically update in the EmployeeViewModel. What is the best way to get it to do this? I was thinking some kind of INotifyPropertyChanged implementation in the Employee class which would let the EmployeeViewModel know to update itself. Or should I use a Dependency Property? Or should I have procedure which ‘refreshes’ the ViewModel once all of the changes in the business logic layer have been completed. Any help appreciated!

  • 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-16T11:07:22+00:00Added an answer on May 16, 2026 at 11:07 am

    My thoughts

    if you implement INotifyPropertyChanged on your Business Entity, you will create a coupling between your Business Entity and your View Model.

    Your Model should not be dependent upon specific feature like INotifypropertychanged.

    2- If you are using Prism Framework ,then use EventAgreegator which is a pure decouple way to communicate between modules.

    3- your 3rd option point sounds good to me when you say “I have procedure which ‘refreshes’ the ViewModel once all of the changes in the business logic layer have been completed”

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

Sidebar

Related Questions

I use MVVM pattern in my WPF application. I'm trying to cache my windows
I'm using Caliburn and the MVVM pattern in a WPF application, and am trying
I'm trying to use Prism and the MVVM pattern to develop an application. In
I'm making a WPF application making use of the MVVM light framework. What I'm
I have recently started learning wpf and am trying to use mvvm. My understanding
I'm trying to use databinding in WPF with an MVVM pattern. So far, it
I'm trying to learn how to use WPF binding and the MVVM architecture. I'm
I'm creating a WPF application using the MVVM design pattern, and I'm trying to
I have come from WPF (MVVM) background and trying to shift to MVC 2.
I am trying to implement the MVVM design patern for mt WPF application. In

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.