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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T01:55:52+00:00 2026-05-21T01:55:52+00:00

I just starting on WPF with MVVM, so forgive any misconceptions. I have a

  • 0

I just starting on WPF with MVVM, so forgive any misconceptions. I have a model (not a view model but the actual model) that has many List inside classes that are in other List making trees of data.

Important, the data should be XML Serializabled, currently there is no problem doing that with regular properties and List.

The View Model of this class is taking a lot more work than I expected and I’m thinking on converting some or maybe all of the List to ObservableCollections, what are the pros and cons of that?

Also, what would be best in a “bindable model”, NotifyPropertyChange or DependencyProperties? I think there would be some memory gains with DependencyProperty since many objects will use default values on most of the properties, what about performance in general, and has it any problems with serialization?

Regards,

  • 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-21T01:55:53+00:00Added an answer on May 21, 2026 at 1:55 am

    The View Model of this class is taking a lot more work than I expected and I’m thinking on converting some or maybe all of the List to ObservableCollections, what are the pros and cons of that?

    There is a bit more overhead in ObservableCollection<T> when compared to List<T>, but it does make it easier as data binding directly to your model collections will work.

    Also, what would be best in a “bindable model”, NotifyPropertyChange or DependencyProperties?

    I would not use DependencyProperties within your model. This is taking a dependency on the WPF libraries, and very platform specific. If you want to be able to data bind directly to your model, implementing INotifyPropertyChanged is a reasonable approach.

    However, you really should stop and take a minute before making any of these changes. If you’re changing your model classes primarily to use them in your View, you’re violating the basic principles of MVVM (and most other architectural patterns). One of the main goals here is that your Model is unaware of the presentation layer being used – this makes it more flexible in the future, as you can change presentation layers without changing your model at all.

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

Sidebar

Related Questions

I am just starting with WPF and I have this ListBox that displays an
Is there any opensource library/WPF Control that can act as bitmap editor (e.g. just
This might be simple for you guys but am just starting in WPF, and
Just starting so any facilitation appreciated. Have an object serialized it to this starting
Any ideas re why the WPF application I've starting building has a larger width
I'm just starting WPF so am just learning but I've ran into a problem
I'm just starting out with WPF and I'm trying to layout a UI. I
I'm just starting to work with Silverlight (no WPF experience either) and am having
When I first open my window that uses the wpf toolkit datepicker it has
I'm just starting out with the Caliburn Micro WindowManager. I have managed to display

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.