/// <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)
 {
     data = new BusLine();
     data = e.Parameter as BusLine;
     listBox.ItemsSource = data.ListPoints;
     textBlock.Text = data.Name;
 }
 public ViewPage()
 {
     this.InitializeComponent();
     //
     processBar.Visibility = Visibility.Visible;
     Geolocator = new Geolocator
     {
         DesiredAccuracyInMeters = 50,
         DesiredAccuracy = PositionAccuracy.High,
         MovementThreshold = 2
     };
     _data = new BusLine();
     listBox.ItemsSource = _data.ListPoints;
 }