private void OnStartup(object sender, StartupEventArgs e) { IServiceLocator serviceLocator = new ServiceLocator(); serviceLocator.ActivateMainWindow(ViewModelManager.GetContactsViewModel()); //ContactsView view = new ContactsView(); ////view.DataContext = new ViewModels.MainViewModel(); //view.Show(); }