I want to pass the data to another view page. So far I can get the data I need to pass. My problem is how do I pass the data in MVVM. I used Application.Current.MainPage.Navigat
I'm assuming that contactID
is an int
.
Create an additional constructor in your DatabaseSyncPage
:
public DatabaseSyncPage (int contactID)
{
// TODO: Do something with your id
}
But this passes the data to the page, not the page model. Are you using any kind of framework? It would probably be worth looking into that.