Convert existing program to MVVM template

After a few weeks, I almost finished my first WPF project. Now I want to reorganize and make my application as clear / reusable as possible.

Does it take a lot of work (and does this mean that a certain logic will completely change?) To change the entire application to the MVVM template and will this facilitate understanding of the application? Also, are there other things I should learn other than MVVM?

Basically, this application will be used by someone other than me, so my goal is to make this program simpler, since it really got complicated in certain areas.

The general layout of my program consists of:

  • 10 classes (1 database class using Singleton)
  • 3 HelperClasses
  • 3 UserControlPages
  • Singleton in about 3 classes
+3
source share
3 answers

Does it take a lot of work to change the entire application?

It's hard to say because it depends on the particular project and how it was encoded before, but basically it was never a little work.

will this facilitate understanding of the application?

Say: no, but that will definitely make it more verifiable and more scalable.

Also, are there other things except MVVM?

This again depends on the specific project (which is the target client of your project, which will reuse your code, what is the expected scale of your project ...)

+2
source
+2

Refactoring will depend on existing code. If you have a loose connection in mind right from the start, this shouldn't be a big deal.

Below are links to questions related to getting started with MVVM.

Learning WPF and MVVM - the best approach for learning from scratch

MVVM: study guide from start to finish?

https://stackoverflow.com/questions/2267903/learning-mvvm-for-wpf

If you have a specific question, please update the question to mention it.

+1
source

All Articles