void PatchSplashScreenWindowStyle(Window splashScreen, bool hasOwner) { if (!SplashScreenHelper.PatchWindowStyle(splashScreen, hasOwner)) { splashScreen.SourceInitialized += OnSplashScreenSourceInitialized; } }
void PatchSplashScreenWindowStyle(Window splashScreen, bool hasOwner, bool checkDispatcherAccess) { bool isAccessDenied = checkDispatcherAccess && (splashScreen.Dispatcher == null || !splashScreen.Dispatcher.CheckAccess()); if (isAccessDenied || !SplashScreenHelper.PatchWindowStyle(splashScreen, hasOwner)) { splashScreen.SourceInitialized += OnSplashScreenSourceInitialized; } }
void PatchSplashScreenWindowStyle(Window splashScreen) { if (!SplashScreenHelper.PatchWindowStyle(splashScreen)) { splashScreen.SourceInitialized += OnSplashScreenSourceInitialized; } #if DEBUGTEST || DEBUG else { Test_IsWindowStylePatched = true; } #endif }