Exemple #1
0
        /// <inheritdoc />
        /// <summary>
        /// Turns off Blur effect, sets undderstratum color
        /// </summary>
        public override void DisableBlur()
        {
            #region windows BUG fix
            if (atFirstTime) //windows BUG fix
            {
                atFirstTime = false;
                DisableBlur();
                EnableBlur();
            }
            #endregion

            var hWnd = HWndSource.Handle;

            if (Environment.OSVersion.Version.Major >= 6)
            {
                if (Environment.OSVersion.Version.Minor > 1)
                {
                    AeroGlassBlurrier.DisableBlur(hWnd, gbrColor);
                }
                else
                {
                    VistaGlassBlurrier.DisableBlurFrame(hWnd);
                }
            }
        }
Exemple #2
0
        /// <inheritdoc />
        /// <summary>
        /// Sets blur effect to current window
        /// </summary>
        public override void EnableBlur()
        {
            var hWnd = HWndSource.Handle;

            if (Environment.OSVersion.Version.Major >= 6)
            {
                if (Environment.OSVersion.Version.Minor > 1)
                {
                    AeroGlassBlurrier.EnableBlur(hWnd, AccentState.ACCENT_ENABLE_ACRYLICBLURBEHIND, gbrColor);
                }
                else
                {
                    VistaGlassBlurrier.ExtendGlassFrame(hWnd,
                                                        new Thickness(-1)); //Check system Framework brfore compiling !!!
                }
            }
        }
        /// <inheritdoc />
        /// <summary>
        /// Sets blur effect to current window
        /// </summary>
        public override void EnableBlur()
        {
            var hWnd = HWndSource.Handle;

            if (Environment.OSVersion.Version.Major >= 6)
            {
                if (Environment.OSVersion.Version.Minor > 1)
                {
                    AeroGlassBlurrier.EnableBlur(hWnd);
                }
                else
                {
                    VistaGlassBlurrier.ExtendGlassFrame(hWnd,
                                                        new Thickness(-1));
                }
            }
        }