示例#1
0
        /// <inheritdoc />
        /// <summary>
        /// Turns off Blur effect, sets undderstatum color
        /// </summary>
        public override void DisableBlur()
        {
            var hWnd = HWndSource.Handle;

            if (Environment.OSVersion.Version.Major >= 6)
            {
                if (Environment.OSVersion.Version.Minor > 1)
                {
                    AeroGlassBlurrier.DisableBlur(hWnd, gbrColor);
                }
                else
                {
                    VistaGlassBlurrier.DisableBlurFrame(hWnd);
                }
            }
        }
示例#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);
                }
                else
                {
                    VistaGlassBlurrier.ExtendGlassFrame(hWnd,
                                                        new Thickness(-1));
                }
            }
        }
示例#3
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 !!!
                }
            }
        }