protected override void OnStartup(StartupEventArgs e) { if (VixWorld == null) { VixWorld = new Viewer3D(); } if (e.Args.Length > 0) { VixWorld.ParseArgs(e.Args[0]); } DispatcherUnhandledException += Application_DispatcherUnhandledException; TaskScheduler.UnobservedTaskException += Scheduler_DispatcherUnhandledException; Canvas3D.StartVixen(VixWorld); base.OnStartup(e); }