protected override void OnStartup(StartupEventArgs e) { //初始化AutoMapper映射 AutoMapperConfiguration.AutoMapperInit(); InitNavigationConfigurationInThisAssembly(); DispatcherUnhandledException += App_DispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; base.OnStartup(e); }