Layout and Appearance > ComponentOne ClearStyle Technology > ClearStyle Property |
FlexGrid for WPF and Silverlight support 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 control.
The following table outlines the brush properties of the C1FlexGrid control:
Brush | Description |
---|---|
Background | Gets or sets the brush of the control’s background. |
AlternatingRowBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of odd-numbered rows. |
BottomRightCellBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cell at the bottom right corner of the grid. |
ColumnHeaderBackground | Gets or sets the System.Windows.Media.Brush that is used to paint column header backgrounds. |
ColumnHeaderForeground | Gets or sets the System.Windows.Media.Brush that is used to paint column header content. |
ColumnHeaderSelectedBackground | Gets or sets the System.Windows.Media.Brush that is used to paint column header backgrounds for selected cells. |
CursorBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cursor cell. |
CursorForeground | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of the cursor cell. |
EditorBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of cells in edit mode. |
EditorForeground | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of cells in edit mode. |
FrozenLinesBrush | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between frozen and scrollable areas of the grid. |
GridLinesBrush | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between cells. |
GroupRowBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of group rows. |
GroupRowForeground | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of group rows. |
HeaderGridLinesBrush | Gets or sets the System.Windows.Media.Brush that is used to paint the lines between row and column header cells. |
RowBackground | Gets or sets the System.Windows.Media.Brush that is used to paint row backgrounds. |
RowHeaderBackground | Gets or sets the System.Windows.Media.Brush that is used to paint row header backgrounds. |
RowHeaderForeground | Gets or sets the System.Windows.Media.Brush that is used to paint row header content. |
RowHeaderSelectedBackground | Gets or sets the System.Windows.Media.Brush that is used to paint row header backgrounds for selected cells. |
SelectionBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of selected cells excluding the cursor cell. |
SelectionForeground | Gets or sets the System.Windows.Media.Brush that is used to paint the foreground of selected cells excluding the cursor cell. |
TopLeftCellBackground | Gets or sets the System.Windows.Media.Brush that is used to paint the background of the cell at the left top corner of the grid. |
Note that the reference links to the properties described above are referring to WPF version; for Silverlight version, please refer to the member with same name in Silverlight namespace.
You can completely change the appearance of the C1FlexGrid control by setting one or more properties, For example, if you set the AlternatingRowBackground property to "#FFC3F2F2", the C1FlexGrid control appears similar to the following: