S
S
simply_user2015-04-23 00:19:28
WPF
simply_user, 2015-04-23 00:19:28

How to implement the MVVM pattern correctly?

Hello! I am learning WPF and MVVM pattern, I want to apply it in my program. My program at startup reads the settings and connects to the database. Accordingly, it notifies the user that the settings were not read and whether the connection to the database has occurred or it has failed. I want to make the notification according to MVVM using bindings. It is clear that View is an application window. I think that the model, or rather models, should be classes containing information about the state of reading settings and connecting to the database. But what will the ViewModel be then?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
asdz, 2015-04-23
@simply_user

The ViewModel is what the View should display)). In fact, it is adapted for the View Model.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question