Example #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            DispatcherUnhandledException += App_DispatcherUnhandledException;

            var boot = new AppBootstrapper();

            ConfigurationSerializer.CheckFolder();

            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(new ShellViewModel(), null, settings);
        }