private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { // Are we selecting an item, and not desellecting one? if (e.AddedItems.Count > 0) { lastUsedListBox = sender as ListBox; // keep track of the list box to clear it after navigated back NavigationService.Navigate(new Uri("/View/StationDataPivot.xaml", UriKind.Relative)); } }