コード例 #1
0
 /// <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);            
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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();
 }