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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:39:47+00:00 2026-06-18T00:39:47+00:00

I’m now trying to use the MVVM approach to display some hierarchical data but

  • 0

I’m now trying to use the MVVM approach to display some hierarchical data but until now, I didn’t implement any specific design pattern.

As simply as I can explain, I have 2 class libraries.

  1. Log.cs
  2. Backup.cs

And I have my WPF project.

Simply put, the Backup class performs some copy and paste functions. Each copy and paste is logged (using the Log class).

Currently, the logs (List) are stored in memory (and this is where maybe there is an issue). When the operation is complete (all backups are finished), I want the Logs to be displayed. My backup.cs class creates an instance of the MainWindow and passes the List<Log> object as a constructor, and I bind it to the data context. This works fine.

However, I now want to use the MVVM approach since I want to use 2 way binding (I want to filter by log status (success or fail (or other states)).

So, does any one feel this is possible with my current design or is the only way forward to be saving the logs as an XML file (or text or similar) just so my Model can be created (using LinqToXml)? Or is there a different approach?

  • 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-18T00:39:49+00:00Added an answer on June 18, 2026 at 12:39 am

    I think you can use your current design and still implement a MVVM approach, that’s not to say that you’re not going to need to do some significant work.

    But you seem to be implying that to use an MVVM pattern, you need to have some connection to a database, and this isn’t the case. In your case your model is your Log class and [potentially] the Backup class.

    Your view model would accept an instance of the Log class, which is where all the data that your UI wants to present lives, and then exposes the other UI properties necessary to facilitate the rest of your UI, such as the filter properties, sorting properties, etc.

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

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I want to construct a data frame in an Rcpp function, but when I
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I upgraded downgraded to rails 2.3.17 due to the security bugs, but now I
I have a jquery bug and I've been looking for hours now, I can't
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text

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.