コード例 #1
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 !!!
                }
            }
        }
コード例 #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));
                }
            }
        }