/// <summary> /// To Choose the End Color /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void colorPickerUIAdv1_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { this.dropDownBarItem2.Checked = false; this.dropDownBarItem2.PopupControlContainer.HidePopup(PopupCloseType.Done); End = (this.colorPickerUIAdv1.SelectedColor); this.editControl1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, Start, End); }
private void colorPickerUIAdv1_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { //set the custom color to the form and RibbonControlAdv this.ColorScheme = ColorSchemeType.Managed; this.ribbonControlAdv1.OfficeColorScheme = ToolStripEx.ColorScheme.Managed; Office12ColorTable.ApplyManagedColors(this, args.Color); //Set the GradientLabel color this.gradientLabel1.BackgroundColor = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, new System.Drawing.Color[] { Color.WhiteSmoke, args.Color, Color.WhiteSmoke }); // Ensures that the PopupControlContainer is closed after the selection of a color. ColorPickerUIAdv cc = sender as ColorPickerUIAdv; Syncfusion.Windows.Forms.PopupControlContainer pcc = cc.Parent as Syncfusion.Windows.Forms.PopupControlContainer; if (pcc != null) { pcc.HidePopup(Syncfusion.Windows.Forms.PopupCloseType.Done); } BrushInfo bInfo = new BrushInfo(Syncfusion.Drawing.GradientStyle.PathEllipse, args.Color, Color.FromArgb(237, 240, 247)); df.gradientLabel1.BackgroundColor = bInfo; df.gradientLabel2.BackgroundColor = bInfo; df.gradientLabel3.BackgroundColor = bInfo; df.gradientPanel1.BackgroundColor = bInfo; this.toolStripButton29.Checked = false; this.popupControlContainer1.Size = this.colorPickerUIAdv1.Size; }
void picker_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { if (this.radioButtonAdv1.Checked) { this.clock1.MinuteColor = picker.SelectedColor; } if (this.radioButtonAdv2.Checked) { this.clock1.HourHandColor = picker.SelectedColor; } if (this.radioButtonAdv3.Checked) { this.clock1.MinuteHandColor = picker.SelectedColor; } if (this.radioButtonAdv4.Checked) { this.clock1.SecondHandColor = picker.SelectedColor; } if (this.radioButtonAdv5.Checked) { this.clock1.StartGradientBackColor = picker.SelectedColor; } if (this.radioButtonAdv6.Checked) { this.clock1.EndGradientBackColor = picker.SelectedColor; } }
void color_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { this.tileLayout1.BackColor = color.SelectedColor; this.pictureBox2.BackColor = this.panel1.BackColor = color.SelectedColor; if (color.SelectedColor != Color.Black) { this.panel2.BackColor = this.panel3.BackColor = this.panel4.BackColor = this.checkBoxAdv1.MetroColor = ControlPaint.Dark(color.SelectedColor); } else { this.panel2.BackColor = this.panel3.BackColor = this.panel4.BackColor = this.checkBoxAdv1.MetroColor = Color.Teal; } }
private void colorPickerUIAdv7_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { for (int i = 0; i < 14; ++i) { for (int j = 0; j < 3; ++j) { sparkline[i, j].Markers.MarkerColor = new Syncfusion.Drawing.BrushInfo(args.Color); } } this.gridControl1.Refresh(); // Ensures that the PopupControlContainer is closed after the selection of a color. ColorPickerUIAdv cc = sender as ColorPickerUIAdv; Syncfusion.Windows.Forms.PopupControlContainer pcc = cc.Parent as Syncfusion.Windows.Forms.PopupControlContainer; pcc.HidePopup(Syncfusion.Windows.Forms.PopupCloseType.Done); }
private void colorPickerUIAdv1_Picked_1(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { Syncfusion.Windows.Forms.Tools.ToolTipInfo toolTipInfo29 = new Syncfusion.Windows.Forms.Tools.ToolTipInfo(); // assign the color toolTipInfo29.BackColor = args.Color; toolTipInfo29.Header.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); toolTipInfo29.Header.Text = "SuperToolTip with \r\nGradient Look And Feel"; toolTipInfo29.Header.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; toolTipInfo29.Header.TextMargin = new System.Windows.Forms.Padding(5); toolTipInfo29.Body.Text = "Select a color to experience the\r\nGradient look and feel of SuperTooltip."; toolTipInfo29.Body.TextMargin = new System.Windows.Forms.Padding(5); toolTipInfo29.Footer.Text = "Appealing look and feel with various \r\ngradient colors."; toolTipInfo29.Footer.TextMargin = new System.Windows.Forms.Padding(5); // To assign the created tooltip to a control. this.superToolTip1.SetToolTip(this.buttonAdv4, toolTipInfo29); this.popupControlContainer1.HidePopup(PopupCloseType.Done); }
private void Colorpicker1_Picked(object sender, ColorPickerUIAdv.ColorPickedEventArgs args) { this.richTextBox1.SelectionBackColor = args.Color; }