Hi, I am trying to pass a paramters to the view RoomBookingPage?
In the function from Nativagiont
private void NavigateToNextPage(object selectedItem)
{
// Do something WITH the item selected.
//Go to selected house, show basic information
Application.Current.MainPage = new NavigationPage(new HouseDetail((Models.NavigationModel)selectedItem));
}
Then, in RoomBookingPage.xaml.cs, in the constructor I can get my NavigatonModel. With the XAML file I modified the ContentPage.BindingContext to obtain the information in my ViewModel:
selectedItem
But in my ViewModel, is an empty object.
public RooomBookingViewModel(Models.NavigationModel HouseSelected)
Which id the correct way to pass an object between views?
Thanks