'宣言 Public Property ButtonAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ButtonAppearance {get; set;}
ButtonAppearance はドロップダウン ボタンのデフォルト外観および ButtonsLeft との ButtonsRight コレクションのボタンにに影響します。
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub UltraCombo1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraCombo1.InitializeLayout ' Make sure themes are turned off other wise UltraGrid will draw the drop ' down button using themes ignoring any button appearance settings. Me.UltraGrid1.SupportThemes = False ' Set the back color and the fore color. Me.UltraCombo1.ButtonAppearance.BackColor = Color.LightYellow Me.UltraCombo1.ButtonAppearance.ForeColor = Color.Blue End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void UltraCombo1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { // Make sure themes are turned off other wise UltraGrid will draw the drop // down button using themes ignoring any button appearance settings. this.ultraGrid1.SupportThemes = false; // Set the back color and the fore color. this.UltraCombo1.ButtonAppearance.BackColor = Color.LightYellow; this.UltraCombo1.ButtonAppearance.ForeColor = Color.Blue; }