Should I navigate to pages from View Model in MVVM pattern?

The sign in button is bound to a command in the ViewModel (VM). If the login is successful, I want to take the user to the main page. That means I need to push the page from VM. Is it going to violet the MVVM design pattern? What is the best way to do it and how?

Best Answer


  • ShantimohanElchuriShantimohanElchuri USMember ✭✭✭✭✭

    @benazir The Command in a MVVM can do anything including calling the Pages.

Sign In or Register to comment.