A
A
andreyAmaterasu2020-07-14 13:25:55
WPF
andreyAmaterasu, 2020-07-14 13:25:55

How to bind ViewModel to each other in a WPF application when using MVVM?

Suppose I have an authorization page, I enter a login and password, authorization is successful, I go to the next page, and how can I pass data from the ViewModel of the authorization page to the next page in order to display some user data received from the database on it data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2020-07-14
@petermzg

As an option.
The ViewModel can be implemented using Dependency Injection, that is, to receive some services, and through them "transmit data". And to put it more precisely, then change the state of the application, and already this state will be displayed on the next page. "Next" is also a state.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question