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));
 }
Ejemplo n.º 2
0
 public ListFieldPage(StoreDtoModel storeDto)
 {
     InitializeComponent();
     BindingContext = _viewModel = new ListFieldViewModel(storeDto);
 }