protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); DispatcherUnhandledException += App_DispatcherUnhandledException; var bootstrapper = new CastleBootstrapper<ShellViewModel>(); bootstrapper.Start(); dynamic settings = new ExpandoObject(); settings.WindowStartupLocation = WindowStartupLocation.CenterScreen; settings.Width = 800; settings.Height = 600; settings.SizeToContent = SizeToContent.Manual; var windowManager = IoC.Get<IWindowManager>(); windowManager.ShowDialog(IoC.Get<ShellViewModel>(), settings: settings); }
public App() { bootstrapper = new CastleBootstrapper(); }