public ProjectExplorerWindow() { ApplicationConfig applicationConfig = new ApplicationConfig(); applicationConfig.ConfigureApplication(this); this.commandExecutor = applicationConfig.GetInstance <CommandExecutor>(); this.dragDropHandler = applicationConfig.GetInstance <DragDropHandler>(); this.bootstrap = applicationConfig.GetInstance <Bootstrap>(); this.DataContext = applicationConfig.GetInstance <MainViewModel>(); InitializeComponent(); }