public ColorPicker(PaintingColor color)
 {
     InitializeComponent();
     SelectedPaintingColor = color;
     _colorPicker.SelectedColor = SelectedPaintingColor.GetNativeColorObject();
 }
 private void SaveColor(object sender, RoutedEventArgs e)
 {
     SelectedPaintingColor = PaintingColor.CreateFromHex(_colorPicker.SelectedColorText);
     DialogResult = true;
 }
Example #3
0
 public Fill(int actionToChange, PaintingColor newColor, UIElement sender)
 {
     _newColor = newColor;
     _sender = sender as UIElement;
     _actionToChange = actionToChange;
 }