C1Expander ClearStyle Properties
Expander 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 C1Expander control:
Brush | Description |
Background | Gets or sets the brush of the control’s background. |
ButtonForeground | Gets or sets the brush of the button’s foreground. |
ExpandedBackground | Gets or sets the brush of the header when the control is expanded. |
FocusBrush | Gets or sets the brush of the control when the control is focused. |
MouseOverBrush | Gets or sets the System.Windows.Media.Brush used to highlight the buttons when the mouse is hovered over them. |
PressedBrush | Gets or sets the System.Windows.Media.Brush used to highlight the buttons when they are clicked on. |
You can completely change the appearance of the C1Expander control by setting a few properties, such as the HeaderBackground property, which sets the background color of the expander’s header. For example, if you set the HeaderBackground property to "#FFE40005", the C1Expander control would appear similar to the following in its unexpanded state:
It’s that simple with ComponentOne’s ClearStyle technology. For more information on ClearStyle, see the ComponentOne ClearStyle Technology topic.