private void ButtonShadowColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(Rect_ShadowColor.Fill); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { Rect_ShadowColor.Fill = new SolidColorBrush(colorp.GetColor()); } }
private void ButtonLegendColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(cont.ChartLegend.Foreground); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { Rect_LegendColor.Fill = new SolidColorBrush(colorp.GetColor()); cont.ChartLegend.Foreground = new SolidColorBrush(colorp.GetColor()); } }
private void ButtonColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(Rect_BackColor.Fill); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { cont.Foreground = new SolidColorBrush(colorp.GetColor()); ((Content_Answers)cont.Tag).foreground.SerializeWithKey(cont.Foreground, data, ""); Rect_BackColor.Fill = new SolidColorBrush(colorp.GetColor()); } }
private void ButtonColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(Rect_BackColor.Fill); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { Rect_BackColor.Fill = new SolidColorBrush(colorp.GetColor()); DesignCanvas.DefaultDrawingAttributes.Color = colorp.GetColor(); Debug.WriteLine("W: " + DesignCanvas.DefaultDrawingAttributes.Width + " H: " + DesignCanvas.DefaultDrawingAttributes.Height); } }
private void ButtonAxisYColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(Rect_AxisYColor.Fill); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { cont.AxisY[0].Foreground = new SolidColorBrush(colorp.GetColor()); cont.AxisY[0].Separator.Stroke = new SolidColorBrush(colorp.GetColor()); Rect_AxisYColor.Fill = new SolidColorBrush(colorp.GetColor()); } }
private void ButtonColor_Click(object sender, RoutedEventArgs e) { Window_ColorPicker colorp = new Window_ColorPicker(Rect_BackColor.Fill); colorp.Owner = Window.GetWindow(this); colorp.ShowDialog(); if (colorp.IsOK() == true) { //brush = new SolidColorBrush(colorp.GetColor()); brush = new SolidColorBrush(colorp.GetColor()); Rect_BackColor.Fill = new SolidColorBrush(colorp.GetColor()); if (ChangedBrush != null) { ChangedBrush(this, brush); } } }