private void LightColorButton_Click(object sender, RoutedEventArgs e)
        {
            var win = new ColorPickerWindow();

            win.SelectedColor              = (LightColorButton.Background as SolidColorBrush).Color;
            win.SelectedColorChangedEvent += ColorPickerWindow_SelectedColorChanged;
            win.ShowDialog();
            win.SelectedColorChangedEvent -= ColorPickerWindow_SelectedColorChanged;
        }
Exemple #2
0
        private void Vignette_Color_Button_Clicked(object sender, RoutedEventArgs e)
        {
            var win = new ColorPickerWindow();

            win.SelectedColor              = (Vignette_Color_Button.Background as SolidColorBrush).Color;
            win.SelectedColorChangedEvent += ColorPickerWindow_SelectedColorChanged_Vignette_Color_Button;
            win.Owner = this;
            win.ShowDialog();
            win.SelectedColorChangedEvent -= ColorPickerWindow_SelectedColorChanged_Vignette_Color_Button;
        }