예제 #1
0
        private static void ComposeObjects()
        {
            MockObjectsProvider.Init(Kernel);

            ViewRouter viewRouter = Kernel.Get <ViewRouter>();

            Kernel.Bind <ViewRouter>().ToConstant(viewRouter);
        }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            //Application.Current.DispatcherUnhandledException+=Current_DispatcherUnhandledException;

            WeakEventManager <Application, DispatcherUnhandledExceptionEventArgs> .
            AddHandler(Application.Current, "DispatcherUnhandledException", Current_DispatcherUnhandledException);

            //display some Splash screen
            MyPrismDemoBootStrapper bs = new MyPrismDemoBootStrapper();

            bs.Run();
            //close the splash screen

            ViewRouter.NavigatetoView(Views.ModuleAView);
        }
예제 #3
0
        private static void ComposeObjects()
        {
            ViewRouter viewRouter = Kernel.Get <ViewRouter>();

            Kernel.Bind <ViewRouter>().ToConstant(viewRouter);
        }