private void NextButton_Click(object sender, RoutedEventArgs e) { var button = sender as Button; currentItem = button.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult; OptionSelected(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.ShowRoute); }
private void ListItemGrid_Tap(object sender, System.Windows.Input.GestureEventArgs e) { var grid = sender as Grid; currentItem = grid.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult; OptionSelected(AlternativeRoutesPageViewModel.OptionSelectedEventArgs.Options.Drive); }
private void ListItemGrid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { var grid = sender as Grid; currentItem = grid.DataContext as AlternativeRoutesPageViewModel.NavigationRouteResult; }