or
Me
.FormElement.ClientFillPrimitive.BackColor = Color.FromArgb(222, 222, 195)
Me
.FormElement.ClientFillPrimitive.BackColor2 = Color.FromArgb(169, 168, 132)
Me
.FormElement.ClientFillPrimitive.NumberOfColors = 2
Me
.FormElement.ClientFillPrimitive.GradientStyle = GradientStyles.Linear
Sin embargo la propiedad ClientFillPrimitive no aparece entre mis opciones y marca error.
Quisiera saber si hay que importar alguna librerĂa para ello.
Gracias.
| private void SetupRibbonBar() |
| { |
| RadLabel lblStartDate = new RadLabel(); |
| lblStartDate.Text = "Start Date"; |
| lblStartDate.Location = new Point(2, 2); |
| RadLabel lblEndDate = new RadLabel(); |
| lblEndDate.Text = "End Date"; |
| lblStartDate.Location = new Point(2, 24); |
| RadDateTimePicker StartDate = new RadDateTimePicker(); |
| StartDate.MinimumSize = new Size(150, 20); |
| StartDate.Location = new Point(13, 2); |
| StartDate.Format = DateTimePickerFormat.Short; |
| RadDateTimePicker EndDate = new RadDateTimePicker(); |
| EndDate.MinimumSize = new Size(150, 20); |
| EndDate.Location = new Point(13, 24); |
| EndDate.Format = DateTimePickerFormat.Short; |
| RadPanel panel = new RadPanel(); |
| panel.Controls.AddRange(new Control[] { lblStartDate, lblEndDate, StartDate, EndDate }); |
| RadHostItem item1 = new RadHostItem(panel); |
| this.RibbonBarGroupReportPeriod.Items.Add(item1); |
| } |