/// <summary> /// When the user selects a stop, we need to navigate to it. /// </summary> private void OnViewModelStopSelected(object sender, StopSelectedEventArgs e) { NavigationController.Instance.GoToRealTimePageCommand.Execute(e); }
/// <summary> /// Update the selected stop on the trip details view model. /// </summary> private void OnTripTimelineControlViewModelStopSelected(object sender, StopSelectedEventArgs e) { var mapViewModel = this.viewModel.MapControlViewModel; mapViewModel.SelectStop(e.SelectedStopId); var mapCenter = mapViewModel.MapView; mapViewModel.MapView = new MapView(new Model.Point(e.Latitude, e.Longitude), mapCenter.ZoomLevel, true); }
/// <summary> /// Called when the user selects a new stop. Update the IsCurrentControlPinned property. /// </summary> private async void OnStopSelected(object sender, StopSelectedEventArgs e) { await NavigationController.Instance.UpdateIsPinnableAsync(this); }
/// <summary> /// Update the selected stop on the map view model. /// </summary> private void OnMapControlViewModelStopSelected(object sender, StopSelectedEventArgs e) { this.viewModel.TripTimelineControlViewModel.SelectStop(e.SelectedStopId); this.tripTimelineControl.ScrollToSelectedTripStop(); }