public ViewModelBase() { var container = (Application.Current.Resources["bootstrapper"] as AppBootstrapper).Container; this.navigationService = container.GetInstance(typeof(INavigationService), null) as INavigationService; this.eventAggregator = container.GetInstance(typeof(IEventAggregator), null) as IEventAggregator; this.storageService = container.GetInstance(typeof(IStorageService), null) as IStorageService; var proxy = storageService.GetCurrentProxySetting(); if (proxy != null) { this.tweetService = container.GetInstance(typeof(ITweetService), proxy.Name) as ITweetService; } this.progressService = container.GetInstance(typeof(ProgressService), null) as ProgressService; this.toastMessageService = container.GetInstance(typeof(ToastMessageService), null) as ToastMessageService; this.languageHelper = Application.Current.Resources["LanguageHelper"] as LanguageHelper; }