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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:13:29+00:00 2026-06-07T21:13:29+00:00

I am trying to get my head around MVVM. For a simple list->data view

  • 0

I am trying to get my head around MVVM. For a simple list->data view it’s no problem. But I am struggling to understand how multiple layers work. I sort of have something working but it’s very hit and miss as to which bits work and which bits don’t. For example, some data updates, some doesn’t. Anything in a deeper level which should affect a list at an upper level sometimes updates the list, sometimes doesn’t. There must be a pattern but I have yet to spot it. Does anybody know of any tutorials with more than just a list->data type of view?

Example:

List of widgets
+- Widget name
+- Widget description
+- List of Widget parts
   +- Part ID
   +- Colour

In that example I could have a three-column approach – list of widgets in the left, widget information in the middle including the parts list, and then the part detail on the right.

  • 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-07T21:13:31+00:00Added an answer on June 7, 2026 at 9:13 pm

    You should have multiple ViewModels, one for each level.
    Then you can provide events to let the upper levels update on change.

    For example you can have a

    public class WidgetListViewModel 
    {
        public ObservableCollection<WidgetViewModel> Widgets {get; set; } 
    }
    
    public class WidgetViewModel
    {
        public string WidgetName { get; set; }
        public string WidgetDescription { get; set; }
        public ObservableCollection<WidgetPartViewModel> Parts { get; set; }
    }
    
    public class WidgetPartViewModel
    {
        public int PartId { get; set; }
        public System.Windows.Media.Color Color { get; set; }
    }
    

    Having events (including a simple pattern) is described here Events in .Net

    Furthermore, I recommend watching this excellent video tutorial on MVVM:
    Jason Dollinger on MVVM

    The video covers some issues of Unity also! (which could be very valuable for you)

    The sourcecode he developes is also available:
    Lab49 Sourcecode by Jason Dollinger

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

Sidebar

Related Questions

Trying to get my head around MVVM, and getting a simple window to render
I'm trying to get my head around WCF transactions but struggling with one concept.
I'm trying to get my head around the whole MVVM thing and binding. I
I'm trying to get my head around three20. It's a big beast, but I
I'm trying to get my head around solving the following problem. I have the
Really trying to get my head around this but cannot see the light through
I am trying to get my head around how multicasting works in MSMQ but
I'm trying to get my head around Caliburn.Micro and MVVM in a small test
new to WPF and MVVM, and trying to get my head around the normal
I'm trying to get my head around to understand how to use closures 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.