private async void OnItemSelected(YourFieldModel yourFieldModel) { var data = new StoreDtoModel { Id = yourFieldModel.StoredtoModel.Id, Name = yourFieldModel.StoredtoModel.Name, Rating = null, OfficeHours = yourFieldModel.StoredtoModel.OfficeHours, IsOpen = yourFieldModel.StoredtoModel.IsOpen, Image = yourFieldModel.StoredtoModel.Image }; await Shell.Current.Navigation.PushAsync(new ListFieldPage(data)); }
public ListFieldPage(StoreDtoModel storeDto) { InitializeComponent(); BindingContext = _viewModel = new ListFieldViewModel(storeDto); }