'Declaration Public Property PressedAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase PressedAppearance {get; set;}
The Appearance property of an object is used to associate the object with an Appearance object that will determine its appearance. The Appearance object has properties that control settings such as color, borders, font, transparency, etc. For many of the objects in UltraWinToolbars, you do not set formatting properties directly. Instead, you set the properties of an Appearance object, which controls the formatting of the object it is attached to.
Note that the properties of an Appearance object can also operate in a hierarchical fashion. Certain properties can be set to a "use default" value, which indicates to the control that the property should take its setting from the object's parent. This functionality is enabled by default, so that unless you specify otherwise, child objects resemble their parents, and formatting set at higher levels of the control hierarchy is inherited by objects lower in the hierarchy.
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinToolbars Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click ' Set the default backcolor and forecolor for various toolbars appearances for all toolbars. Me.UltraToolbarsManager1.ToolbarSettings.Appearance.BackColor = Color.LightBlue Me.UltraToolbarsManager1.ToolbarSettings.Appearance.ForeColor = Color.DarkBlue Me.UltraToolbarsManager1.ToolbarSettings.DockedAppearance.BackColor = Color.LightGray Me.UltraToolbarsManager1.ToolbarSettings.DockedAppearance.ForeColor = Color.DarkGray Me.UltraToolbarsManager1.ToolbarSettings.EditAppearance.BackColor = Color.White Me.UltraToolbarsManager1.ToolbarSettings.EditAppearance.ForeColor = Color.Red Me.UltraToolbarsManager1.ToolbarSettings.FloatingAppearance.BackColor = Color.Yellow Me.UltraToolbarsManager1.ToolbarSettings.FloatingAppearance.ForeColor = Color.Blue Me.UltraToolbarsManager1.ToolbarSettings.HotTrackAppearance.BackColor = Color.Black Me.UltraToolbarsManager1.ToolbarSettings.HotTrackAppearance.ForeColor = Color.Green Me.UltraToolbarsManager1.ToolbarSettings.PressedAppearance.BackColor = Color.White Me.UltraToolbarsManager1.ToolbarSettings.PressedAppearance.ForeColor = Color.Black Me.UltraToolbarsManager1.ToolbarSettings.ToolAppearance.BackColor = Color.Aqua Me.UltraToolbarsManager1.ToolbarSettings.ToolAppearance.ForeColor = Color.Chocolate ' Override the forecolor settings in the above toolbar appearance defaults for a specific toolbar. If Me.UltraToolbarsManager1.Toolbars.Count > 0 Then Dim toolBar As UltraToolbar = Me.UltraToolbarsManager1.Toolbars(0) toolBar.Settings.Appearance.ForeColor = Color.DarkBlue toolBar.Settings.DockedAppearance.ForeColor = Color.DarkGray toolBar.Settings.EditAppearance.ForeColor = Color.Red toolBar.Settings.FloatingAppearance.ForeColor = Color.Blue toolBar.Settings.HotTrackAppearance.ForeColor = Color.Green toolBar.Settings.PressedAppearance.ForeColor = Color.Black toolBar.Settings.ToolAppearance.ForeColor = Color.Chocolate End If End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinToolbars; private void button20_Click(object sender, System.EventArgs e) { // Set the default backcolor and forecolor for various toolbars appearances for all toolbars. this.ultraToolbarsManager1.ToolbarSettings.Appearance.BackColor = Color.LightBlue; this.ultraToolbarsManager1.ToolbarSettings.Appearance.ForeColor = Color.DarkBlue; this.ultraToolbarsManager1.ToolbarSettings.DockedAppearance.BackColor = Color.LightGray; this.ultraToolbarsManager1.ToolbarSettings.DockedAppearance.ForeColor = Color.DarkGray; this.ultraToolbarsManager1.ToolbarSettings.EditAppearance.BackColor = Color.White; this.ultraToolbarsManager1.ToolbarSettings.EditAppearance.ForeColor = Color.Red; this.ultraToolbarsManager1.ToolbarSettings.FloatingAppearance.BackColor = Color.Yellow; this.ultraToolbarsManager1.ToolbarSettings.FloatingAppearance.ForeColor = Color.Blue; this.ultraToolbarsManager1.ToolbarSettings.HotTrackAppearance.BackColor = Color.Black; this.ultraToolbarsManager1.ToolbarSettings.HotTrackAppearance.ForeColor = Color.Green; this.ultraToolbarsManager1.ToolbarSettings.PressedAppearance.BackColor = Color.White; this.ultraToolbarsManager1.ToolbarSettings.PressedAppearance.ForeColor = Color.Black; this.ultraToolbarsManager1.ToolbarSettings.ToolAppearance.BackColor = Color.Aqua; this.ultraToolbarsManager1.ToolbarSettings.ToolAppearance.ForeColor = Color.Chocolate; // Override the forecolor settings in the above toolbar appearance defaults for a specific toolbar. if (this.ultraToolbarsManager1.Toolbars.Count > 0) { UltraToolbar toolbar = this.ultraToolbarsManager1.Toolbars[0]; toolbar.Settings.Appearance.ForeColor = Color.DarkBlue; toolbar.Settings.DockedAppearance.ForeColor = Color.DarkGray; toolbar.Settings.EditAppearance.ForeColor = Color.Red; toolbar.Settings.FloatingAppearance.ForeColor = Color.Blue; toolbar.Settings.HotTrackAppearance.ForeColor = Color.Green; toolbar.Settings.PressedAppearance.ForeColor = Color.Black; toolbar.Settings.ToolAppearance.ForeColor = Color.Chocolate; } }
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