public RecentSearch(SearchItemBase searchItem, int resultsCount, PropertyFinderViewModel parent) { Search = searchItem; ResultsCount = resultsCount; Parent = parent; }
// Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void Application_Launching(object sender, LaunchingEventArgs e) { var source = new PropertyDataSource(new JsonWebPropertySearch()); var geolocationService = new GeoLocationService(); var statePersistence = new StatePersistenceService(); PropertyFinderPersistentState state = statePersistence.LoadState(); var viewModel = new PropertyFinderViewModel(state, source, new NavigationService(null), geolocationService); RootFrame.DataContext = viewModel; }