C1TabControl ClearStyle Properties

TabControl for WPF supports ComponentOne's new ClearStyle technology that allows you to easily change control colors without having to change control templates. By just setting a few color properties you can quickly style the entire grid.

The following table outlines the brush properties of the C1TabControl control:

 

Brush

Description

Background

Gets or sets the brush for the background of each C1TabItem’s content area. 

TabStripBackground

Gets or sets the brush for the background of the C1TabStrip’s background.

MouseOverBrush

Gets or sets the System.Windows.Media.Brush used to highlight the tabs when the mouse is hovered over them.

PressedBrush

Gets or sets the System.Windows.Media.Brush used to highlight the tabs when they are clicked on.

 

The following table outlines the brush properties of the C1TabItem control:

 

Brush

Description

Background

Gets or sets the backgrounds of all C1TabItems associated with the control. 

MouseOverBrush

Gets or sets the System.Windows.Media.Brush used to highlight the tab when the mouse is hovered over them.

PressedBrush

Gets or sets the System.Windows.Media.Brush used to highlight the tab when they are clicked on.

 

You can completely change the appearance of the C1TabControl control by setting a few properties, such as the Background property, which sets the background color of the tab control’s content area. For example, if you set the Background property to "#FFE40005", the C1TabControl control would appear similar to the following:

 

 

If you clicked through the tabs, you’d notice that the background of each tab’s content area is red. If you’d like to change the color of one tab, simply set the C1TabItem’s Background property rather than the C1TabControl’s Background property.

You can also set the color of the tabstrip by setting the C1TabControl’s TabStripBackground property. In the following example, the TabStripBackground property is set to “#FFE40005”:

 

 

It’s that simple with ComponentOne’s ClearStyle technology. For more information on ClearStyle, see the ComponentOne ClearStyle Technology topic. 

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.