RouteExample.xaml.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Breda_Tour.Data;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Diagnostics;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Runtime.InteropServices.WindowsRuntime;
  8. using Windows.Foundation;
  9. using Windows.Foundation.Collections;
  10. using Windows.UI.Xaml;
  11. using Windows.UI.Xaml.Controls;
  12. using Windows.UI.Xaml.Controls.Primitives;
  13. using Windows.UI.Xaml.Data;
  14. using Windows.UI.Xaml.Input;
  15. using Windows.UI.Xaml.Media;
  16. using Windows.UI.Xaml.Navigation;
  17. // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
  18. namespace Breda_Tour.RouteSelectScreen
  19. {
  20. /// <summary>
  21. /// An empty page that can be used on its own or navigated to within a Frame.
  22. /// </summary>
  23. public sealed partial class RouteExample : Page
  24. {
  25. Route route;
  26. public string Waypoints { get; set; }
  27. public RouteExample()
  28. {
  29. this.InitializeComponent();
  30. }
  31. protected override void OnNavigatedTo(NavigationEventArgs e)
  32. {
  33. route = e.Parameter as Route;
  34. Waypoints = "Aantal waypoints: " + 0;
  35. this.DataContext = route;
  36. //if (route.Waypoints.Count != 0){
  37. // waypoints = route.Waypoints.Count;
  38. //}
  39. }
  40. }
  41. }