示例#1
0
        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);
        }
示例#2
0
 public App()
 {
     bootstrapper = new CastleBootstrapper();
 }