Exemplo n.º 1
0
 void PatchSplashScreenWindowStyle(Window splashScreen, bool hasOwner)
 {
     if (!SplashScreenHelper.PatchWindowStyle(splashScreen, hasOwner))
     {
         splashScreen.SourceInitialized += OnSplashScreenSourceInitialized;
     }
 }
Exemplo n.º 2
0
            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;
                }
            }
Exemplo n.º 3
0
            void PatchSplashScreenWindowStyle(Window splashScreen)
            {
                if (!SplashScreenHelper.PatchWindowStyle(splashScreen))
                {
                    splashScreen.SourceInitialized += OnSplashScreenSourceInitialized;
                }
#if DEBUGTEST || DEBUG
                else
                {
                    Test_IsWindowStylePatched = true;
                }
#endif
            }