Version

About the Office 2007 Look and Feel

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.

DisplayStyle

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.

ButtonStyle

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.

ViewStyle

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.

Note
Note

If a control’s view style is set by another property, it is identified in parentheses below.

GlyphStyle

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:

Color Scheme

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;

Color Gradients

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