void RegisterViews() { SimpleIoC.RegisterPage <MainViewModel, MainPage>(); SimpleIoC.RegisterPage <SubscriptionsViewModel, SubscriptionsPage>(); SimpleIoC.RegisterPage <ItemDetailViewModel, ItemDetailPage>(); SimpleIoC.RegisterPage <NewItemViewModel, NewItemPage>(); SimpleIoC.RegisterPage <SearchViewModel, SearchPage>(); SimpleIoC.RegisterPage <PodcastViewModel, PodcastPage>(); }
public App() { InitializeComponent(); SimpleIoC.RegisterPage <EnterKeyViewModel, EnterKeyPage>(); SimpleIoC.RegisterPage <AchievementViewModel, AchievementPage>(); SimpleIoC.RegisterPage <AchievementDetailViewModel, AchievementDetailPage>(); BlobCache.ApplicationName = "Akavache"; if (string.IsNullOrEmpty(Settings.ApiKey)) { NavigationService.SetRoot(new EnterKeyViewModel()); return; } NavigationService.SetRoot(new AchievementViewModel()); }