private static void ComposeObjects() { MockObjectsProvider.Init(Kernel); ViewRouter viewRouter = Kernel.Get <ViewRouter>(); Kernel.Bind <ViewRouter>().ToConstant(viewRouter); }
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); }
private static void ComposeObjects() { ViewRouter viewRouter = Kernel.Get <ViewRouter>(); Kernel.Bind <ViewRouter>().ToConstant(viewRouter); }