'宣言 Public Property CloseButtonAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase CloseButtonAppearance {get; set;}
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTabs ' Place close button in the header area of the tab control. Me.UltraTabControl1.CloseButtonLocation = TabCloseButtonLocation.HeaderArea ' Turn off themes so the appearance of the close buttons can be modified Me.UltraTabControl1.UseOsThemes = DefaultableBoolean.False ' Set the appearance of the close button in the normal state Me.UltraTabControl1.CloseButtonAppearance.BackColor = Color.White ' Set the appearance of the close button when the mouse is over it Me.UltraTabControl1.HotTrackCloseButtonAppearance.BackColor = Color.Red ' Set the appearance of the close button when it is pressed Me.UltraTabControl1.PressedCloseButtonAppearance.BackColor = Color.Blue
using System.Windows.Forms; using Infragistics.Win; using Infragistics.Win.UltraWinTabs; // Place close button in the header area of the tab control. this.ultraTabControl1.CloseButtonLocation = TabCloseButtonLocation.HeaderArea; // Turn off themes so the appearance of the close buttons can be modified this.ultraTabControl1.UseOsThemes = DefaultableBoolean.False; // Set the appearance of the close button in the normal state this.ultraTabControl1.CloseButtonAppearance.BackColor = Color.White; // Set the appearance of the close button when the mouse is over it this.ultraTabControl1.HotTrackCloseButtonAppearance.BackColor = Color.Red; // Set the appearance of the close button when it is pressed this.ultraTabControl1.PressedCloseButtonAppearance.BackColor = Color.Blue;