Пример #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     DataContext = new WindowBlureffect(this, AccentState.ACCENT_DISABLED)
     {
         BlurOpacity = 110
     };
 }
Пример #2
0
        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            switch (c.SelectedIndex)
            {
            case 0:
                DataContext = new WindowBlureffect(this, AccentState.ACCENT_DISABLED)
                {
                    BlurOpacity = 100
                };
                break;

            case 1:
                DataContext = new WindowBlureffect(this, AccentState.ACCENT_ENABLE_GRADIENT)
                {
                    BlurOpacity = 100
                };
                break;

            case 2:
                DataContext = new WindowBlureffect(this, AccentState.ACCENT_ENABLE_TRANSPARENTGRADIENT)
                {
                    BlurOpacity = 100
                };
                break;

            case 3:
                DataContext = new WindowBlureffect(this, AccentState.ACCENT_ENABLE_BLURBEHIND)
                {
                    BlurOpacity = 100
                };
                break;

            case 4:
                DataContext = new WindowBlureffect(this, AccentState.ACCENT_ENABLE_ACRYLICBLURBEHIND)
                {
                    BlurOpacity = 100
                };
                break;
            }
        }