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'm just starting WPF so am just learning but I've ran into a problem
So I'm just starting out with WPF, and I'm really annoyed by the fact
My company is just starting to look at using WPF for migrating all of
Just starting out in asp.net. Have just created a login.aspx page in my site
I am just starting out with DI & unit testing and have hit a
I am just starting to learn javascript, so I don't have the skills to
I am just starting out using IronPython with WPF and I don't quiet understand
I have a search box that works great in WinForms, but is giving me
Just starting with php and sorry if this is a newbie question but i'm
Just starting to explore the 'wonders' of regex. Being someone who learns from trial

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.