public PMS_Room_Detail_View(HotelRoom hotelRoom) { this.Title = $"Room {hotelRoom.RoomNumber} Details"; Content = new StackLayout { Children = { new Label { Text = hotelRoom.ToString() } } }; }
async void OnItemTapped(object sender, ItemTappedEventArgs e) { HotelRoom tappedRoom = (HotelRoom)e.Item; await this.Navigation.PushAsync(new PMS_Room_Detail_View (tappedRoom)); }