private void UI_Effect_DeFocusWindow()
        {
            if (appSettings.Get_AppSettings_DefocusEffect() == false)
            {
                return;
            }

            System.Windows.Media.Effects.BlurEffect blurEffect = new System.Windows.Media.Effects.BlurEffect();
            blurEffect.Radius = 10;

            this.Effect  = blurEffect;
            this.Opacity = 0.75;
        }
Exemple #2
0
        /// <summary>
        /// Blurs and darkens the current window (if defocus is enabled)
        /// </summary>
        private void UI_Effect_DeFocusWindow()
        {
            //if the effect isn't on, don't continue
            if (appSettings.Get_AppSettings_DefocusEffect() == false)
            {
                return;
            }

            //create our blur effect
            System.Windows.Media.Effects.BlurEffect blurEffect = new System.Windows.Media.Effects.BlurEffect();
            blurEffect.Radius = 10;

            //set the blur effect and our opacity to darken the window
            this.Effect  = blurEffect;
            this.Opacity = 0.75;
        }