ResultPage.xaml.cs CampusAppWP8::Pages::Lecture::ResultPage CampusAppWP8::Pages::Lecture //----------------------------------------------------------------------- //<copyrightfile="ResultPage.xaml.cs"company="BTU/IIT"> //Companycopyrighttag. //</copyright> //<author>stubbfel</author> //<sience>11.06.2013</sience> //---------------------------------------------------------------------- namespaceCampusAppWP8.Pages.Lecture { usingSystem; usingSystem.Linq; usingSystem.Windows.Navigation; usingCampusAppWP8.Model.Lecture; usingCampusAppWP8.Resources; usingMicrosoft.Phone.Controls; publicpartialclassResultPage:PhoneApplicationPage { publicResultPage() { this.InitializeComponent(); } protectedoverridevoidOnNavigatedTo(NavigationEventArgse) { LectureListlist=App.LoadFromIsolatedStorage<LectureList>(Constants.IsolatedStorage_LectureModel); if(list==null) { Uriurl=newUri(Constants.PathLecture_LecturePage,UriKind.Relative); NavigationService.Navigate(url); return; } this.ResultList.ItemsSource=list.Activities.OrderByDescending(o=>o.Type).ThenBy(o=>o.Title).ToList(); base.OnNavigatedTo(e); } } }