/// <summary>
  /// Invoked when this page is about to be displayed in a Frame.
  /// </summary>
  /// <param name="e">Event data that describes how this page was reached.
  /// This parameter is typically used to configure the page.</param>
  /// 
 
  protected override void OnNavigatedTo(NavigationEventArgs e)
  {
      switch (PageNavigationMode.Mode)
      {
          case "Top":
              {
                  Frame.ContentTransitions = new TransitionCollection { new PaneThemeTransition { Edge = EdgeTransitionLocation.Top } };
                  break;
              }
          case "Bottom":
              {
                  Frame.ContentTransitions = new TransitionCollection { new PaneThemeTransition { Edge = EdgeTransitionLocation.Bottom } };
                  break;
              }
          case "Left":
              {
                  Frame.ContentTransitions = new TransitionCollection { new PaneThemeTransition { Edge = EdgeTransitionLocation.Left } };
                  break;
              }
          case "Right":
              {
                  Frame.ContentTransitions = new TransitionCollection { new PaneThemeTransition { Edge = EdgeTransitionLocation.Right } };
                  break;
              }
          default:
              {
                  Frame.ContentTransitions = new TransitionCollection { new PaneThemeTransition { Edge = EdgeTransitionLocation.Top } };
                  break;
              }
      }
      MytripList SelectedTrip = e.Parameter as MytripList;
      TripReceipt tripReceipt = new TripReceipt();
      tripReceipt.ArrivalTime = SelectedTrip.arrivaltime;
      tripReceipt.AvailbleSeat = "12A,12C,12B";
      tripReceipt.CustomerName = "MR. Dharmin Naik";
      tripReceipt.DepartDate = SelectedTrip.datedepart;
      tripReceipt.DepartFrom = SelectedTrip.From;
      tripReceipt.DepartTime = SelectedTrip.departtime;
      tripReceipt.StationName = "KRTC";
      tripReceipt.TotalCost = "625.50";
      tripReceipt.TravelBy = SelectedTrip.travelby;
      tripReceipt.TravelTo = SelectedTrip.To;
      tripReceipt.Via = "MYC,BKC,BC ROAD";
      this.DataContext = tripReceipt;
  }
Exemple #2
0
        /// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            switch (PageNavigationMode.Mode)
            {
            case "Top":
            {
                Frame.ContentTransitions = new TransitionCollection {
                    new PaneThemeTransition {
                        Edge = EdgeTransitionLocation.Top
                    }
                };
                break;
            }

            case "Bottom":
            {
                Frame.ContentTransitions = new TransitionCollection {
                    new PaneThemeTransition {
                        Edge = EdgeTransitionLocation.Bottom
                    }
                };
                break;
            }

            case "Left":
            {
                Frame.ContentTransitions = new TransitionCollection {
                    new PaneThemeTransition {
                        Edge = EdgeTransitionLocation.Left
                    }
                };
                break;
            }

            case "Right":
            {
                Frame.ContentTransitions = new TransitionCollection {
                    new PaneThemeTransition {
                        Edge = EdgeTransitionLocation.Right
                    }
                };
                break;
            }

            default:
            {
                Frame.ContentTransitions = new TransitionCollection {
                    new PaneThemeTransition {
                        Edge = EdgeTransitionLocation.Top
                    }
                };
                break;
            }
            }
            MytripList  SelectedTrip = e.Parameter as MytripList;
            TripReceipt tripReceipt  = new TripReceipt();

            tripReceipt.ArrivalTime  = SelectedTrip.arrivaltime;
            tripReceipt.AvailbleSeat = "12A,12C,12B";
            tripReceipt.CustomerName = "MR. Dharmin Naik";
            tripReceipt.DepartDate   = SelectedTrip.datedepart;
            tripReceipt.DepartFrom   = SelectedTrip.From;
            tripReceipt.DepartTime   = SelectedTrip.departtime;
            tripReceipt.StationName  = "KRTC";
            tripReceipt.TotalCost    = "625.50";
            tripReceipt.TravelBy     = SelectedTrip.travelby;
            tripReceipt.TravelTo     = SelectedTrip.To;
            tripReceipt.Via          = "MYC,BKC,BC ROAD";
            this.DataContext         = tripReceipt;
        }