ComponentOne DateTimeEditors for WPF and Silverlight
C1DateTimePicker ClearStyle Properties
C1DateTimePicker Control Help > C1DateTimePicker for WPF Layout and Appearance > C1DateTimePicker ClearStyle Properties

DateTimePicker for WPF and Silverlight 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 C1DateTimePicker control:

 

Brush

Description

Background

Gets or sets the brush of the control’s background.

ButtonBackground

Gets or sets the brush of the buttons’ background colors.

ButtonForeground

Gets or sets the brush of the buttons’ foreground colors.

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 C1DateTimePicker control by setting a few properties, such as the ButtonBackground property, which sets the background of the drop-down arrow, for the C1DateTimePicker control. For example, if you set the ButtonBackground property to "#FFC500FF", the C1DateTimePicker control would appear similar to the following: