public static void Close() { if (!IsActive) { throw new InvalidOperationException(DXSplashScreenExceptions.Exception3); } SplashScreenWindow.Dispatcher.BeginInvoke(delegate { SplashScreenWindow.HideSplashScreen(); ReleaseResources(); }); }