Ejemplo n.º 1
0
        private void ImageButton_Clicked(object sender, EventArgs e)
        {
            MainViewModel     mainVm            = this.BindingContext as MainViewModel;
            var               locationViewModel = FishingLocationCarousel.CurrentItem as FishingLocationViewModel;
            PanoramaViewModel panViewModel      = new PanoramaViewModel(locationViewModel);

            panViewModel.WeatherIcon = mainVm.WeatherIcon;

            var locationPage = new FishingLocationPage(panViewModel);

            this.Navigation.PushAsync(locationPage);
        }
 public FishingLocationPage(PanoramaViewModel viewModel)
 {
     InitializeComponent();
     this.viewModel      = viewModel;
     this.BindingContext = viewModel;
 }