'Declaration Public Property ButtonAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase ButtonAppearance {get; set;}
The ButtonAppearance effects the default appearance of the dropdown button as well as any buttons in the ButtonsRight and ButtonsLeft collections.
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; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2