private void Application_Startup(object sender, StartupEventArgs e) { Logger = new ErrorLog("Crashes"); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; Application.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException; Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 20 }); WindowControl wc = new WindowControl(); }