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); }
private static void isStrawOnChang(DependencyObject sender, DependencyPropertyChangedEventArgs e) { ColorButton Con = (ColorButton)sender; if (Con.isSalf == false) { Con.ColorPicker.isStraw = (bool)e.NewValue; } }