Esempio n. 1
0
            protected override void OnSourceInitialized(EventArgs e)
            {
                base.OnSourceInitialized(e);
                if (!SplashScreenHelper.HasAccess(this))
                {
                    return;
                }

                Handle = new WindowInteropHelper(this).Handle;
                HwndSource.FromHwnd(Handle).AddHook(WndProc);
            }