Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question