Infragistics.Win.Office2007ColorTable.ColorScheme = _ Infragistics.Win.Office2007ColorScheme.Black
In Ultimate UI for Windows Forms 2006 Volume 3, we added a new look and feel to our controls: the Microsoft® Office 2007 look and feel. This look and feel is unique in the way that it comes in three separate colors: Blue, Black, and Silver. You can change back and forth between these colors by using the ColorScheme property off the Office2007ColorTable object.
Almost every one of our controls supports this new theme. All of our WinEditor controls support the Office 2007 look and feel through the DisplayStyle property. Several controls that use the button UIElement such as WinButton, WinScrollBar, and most of our WinEditors support this look and feel through the ButtonStyle property. The controls themselves can take advantage of the Office 2007 look and feel through the ViewStyle property. Continue reading for a complete list of controls and components that support the Office 2007 look and feel.
You can apply the Office 2007 look and feel to the following controls by setting their DisplayStyle property to Office2007. Click the blue links below to view a specific control’s DisplayStyle property.
WinCalendarCombo™ (CalendarLook’s ViewStyle must be set to Office2007)
Any control that uses an Editor
You can apply the Office 2007 look and feel to the following controls by setting their ButtonStyle property to Office2007. Click the blue links below to view a specific control’s ButtonStyle property.
Editor Controls (note the absence of WinCalendarCombo and WinTextEditor).
You can apply the Office 2007 look and feel to the following controls by setting their ViewStyle property to Office2007. Click the blue links below to view a specific control’s ViewStyle property.
ContextMenu ( MenuStyle )
WinDockManager ( WindowStyle )
WinToolbarsManager ( Style )
WinSchedule - CalendarLook’s ViewStyle property affects the following controls:
WinDayView
WinMonthViewMulti
WinMonthViewSingle
WinWeekView
ScrollBarLook – affects the following controls:
WinExplorerBar
WinCombo
WinGrid
WinListView
WinTree
Our WinCheckEditor and WinOptionSet controls also emulate the new look and feel. We added the GlyphStyle property to these two controls to change the look of the radio button and checkbox. You can even change checkboxes and radio buttons inside of our other controls such as WinGrid, WinListView, and WinTree with the UIElementDrawParams structure. See the following topics for more information:
The Office 2007 look and feel brings with it three completely different color schemes. The default color scheme is Blue, giving your application a Windows XP look to it. You can also choose Black which is representative of the new Windows® Vista™ operating system. The other color scheme is Silver, emulating the Windows XP Silver theme. Setting these colors involves setting one property. However, every control in your application using the Office 2007 look and feel will take on this color scheme. You cannot have one control using the Blue color scheme while another uses the Black color scheme. The following code will change the Office 2007 color scheme to Black for the entire application:
In Visual Basic:
Infragistics.Win.Office2007ColorTable.ColorScheme = _ Infragistics.Win.Office2007ColorScheme.Black
In C#:
Infragistics.Win.Office2007ColorTable.ColorScheme = Infragistics.Win.Office2007ColorScheme.Black;
In order for us to implement the new Office 2007 view style, we needed to create a new gradient type. We added a new type of gradient, Glass, to our GradientStyle enumeration. Glass isn’t just one gradient style, it involves several different types of gradients. You will notice that each glass gradient style has an orientation and a number in the actual enumeration. The orientation dictates from which direction the gradient will start. The number indicates how many pixels are necessary until the next gradient color becomes full. Below is a list of the Glass gradients that we added in the 2006 Volume 3 release:
GlassBottom20
GlassBottom20Bright
GlassBottom37
GlassBottom37Bright
GlassBottom50
GlassBottom50Bright
GlassLeft20
GlassLeft20Bright
GlassLeft37
GlassLeft37Bright
GlassLeft50
GlassLeft50Bright
GlassRight20
GlassRight20Bright
GlassRight37
GlassRight37Bright
GlassRight50
GlassRight50Bright
GlassTop20
GlassTop20Bright
GlassTop37
GlassTop37Bright
GlassTop50
GlassTop50Bright