예제 #1
0
        private static void ColorOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            ColorButton Con = (ColorButton)sender;

            Con.ColorPicker.Color = (Color)e.NewValue;
            Con.Border.Background = new SolidColorBrush((Color)e.NewValue);
        }
예제 #2
0
        private static void isStrawOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            ColorButton Con = (ColorButton)sender;

            if (Con.isSalf == false)
            {
                Con.ColorPicker.isStraw = (bool)e.NewValue;
            }
        }