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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:29:17+00:00 2026-05-26T17:29:17+00:00

I am trying to synchronize data between seperate Views in MVVM. Here is the

  • 0

I am trying to synchronize data between seperate Views in MVVM.

Here is the scenario:

There’re two ViewModels and two Views respectively:

ViewModel1: contains a list of “Person” object, named “People”, which is defined in Entity Framework and is retrieved via WCF Service.

View1: contains an ItemsControl wich is bound to “People” of ViewModel. Item’s color may vary depending on its value, for example: person who is over 60 years old may appear red color, while person under 18 years old may appear green. This is achieved by a Value Converter.

(there is a button named “Show Detail Info” in View1, when it’s clicked, a ChildWindow dialog is poped up and detail information of currently selected “Person” is displayed )

ViewModel2: contains a “SelectedPerson” object, and implements a “Save” method.

View2: contains several input fields bound to corresponding fields of “SelectedPerson” object, such as TextBox for “Person.FirstName”, DateTimePicker for “Person.Birthday”, RadioButton for “Person.Gender”, etc.

Problem:

when i changed some fields (i.e. “Name” field) and clicked “Save” button, i can even see that changes have been committed onto Database. However, the corresponding item in View1 failed to update its color.

Is there better way to fix this problem?

  • 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-26T17:29:18+00:00Added an answer on May 26, 2026 at 5:29 pm

    You can adress such problems usually in three ways depending on your setup:

    1 & 2) If the 2 VMs are instantiated by the same parent object these can be connected via INotifyPropertyChanged or Events for the updated Properties

    3) If they are disconnected you can use an EventAggregator to message between the VMs. CaliburnMicro has a pretty good implementation but you can build one yourself with just two classes. For more information see: Caliburn.Micro Soup to Nuts Part 8–The EventAggregator

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

Sidebar

Related Questions

I’m using SSIS to synchronize data between two databases. I’ve used SSIS and DTS
I have two QTableWidgets and I'm trying to synchronize them as an exercise to
I am trying to synchronize my own database for tracks and albums (that contains
I am trying to synchronize the horizontal scroll position of 2 WPF DataGrid controls.
I am trying to build an iPhone application using core data's built in table
I'm trying to extract contact informations from android devices and synchronize it with the
I'm trying to implement this simple example of how to synchronize threads using pthread
I'm trying to develop a program that takes requests for data which is stored
I'm quicksorting over a very large amount of data, and for fun am trying
I am trying to keep a copy of an activity table synchronized between a

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.