ComboBox 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 C1ComboBox control:
Brush | Description |
Background | Gets or sets the brush of the control’s background. |
ButtonBackground | Gets or sets the brush of the drop-down button’s background. |
ButtonForeground | Gets or sets the brush of the drop-down button’s foreground. |
FocusBrush | Gets or sets the brush for the control when it has focus. |
MouseOverBrush | Gets or sets the brush for the control when it is moused over. |
PressedBrush | Gets or sets the brush for the control when it is pressed. |
SelectedBackground | Gets or sets the brush of the background for the selected C1ComboBoxItem. |
The following table outlines the brush properties of the C1ComboBoxItem control:
Brush | Description |
Background | Gets or sets the brush of the control’s background. |
You can completely change the appearance of the C1ComboBox and C1ComboBoxItem controls by setting a few properties, such as the C1ComboBox control’s ButtonBackground property, which sets the background color for the control’s drop-down arrow. For example, if you set the C1ComboBox control’s ButtonBackground property to "#FFC500FF", each header in the C1ComboBox control would appear similar to the following:
It’s that simple with ComponentOne’s ClearStyle technology. For more information on ClearStyle, see the ComponentOne ClearStyle Technology topic.