'宣言 Public Property DropDownAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase DropDownAppearance {get; set;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.CalendarCombo Private Sub SetupDropDownAppearance() ' Use gradients for the background Me.ultraCalendarCombo1.DropDownAppearance.BackColor = Color.White Me.ultraCalendarCombo1.DropDownAppearance.BackColor2 = Color.LightBlue Me.ultraCalendarCombo1.DropDownAppearance.BackGradientStyle = GradientStyle.ForwardDiagonal ' Use a darker color for the foreground Me.ultraCalendarCombo1.DropDownAppearance.ForeColor = Color.DarkBlue End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.CalendarCombo; private void SetupDropDownAppearance() { // Use gradients for the background this.ultraCalendarCombo1.DropDownAppearance.BackColor = Color.White; this.ultraCalendarCombo1.DropDownAppearance.BackColor2 = Color.LightBlue; this.ultraCalendarCombo1.DropDownAppearance.BackGradientStyle = GradientStyle.ForwardDiagonal; // Use a darker color for the foreground this.ultraCalendarCombo1.DropDownAppearance.ForeColor = Color.DarkBlue; }