public override void Prepare() { container = new DependencyInjectionContainer(); // Register all needed types out of StyleMVVM.DotNet container.RegisterAssembly(typeof(DependencyInjectionContainer).Assembly); // Remove extra XAML based exports that aren't need (MVVM classes and what not) container.RemoveXAMLExports(); // Register local exports container.Register<Singleton>().As<ISingleton>().AndSharedPermenantly(); container.Register<Transient>().As<ITransient>(); container.Register<Combined>().As<ICombined>().ImportConstructor(() => new Combined(null, null)); container.Start(); }