# Styling in Visual Style Builder

The following article shows how you can change the calendar cells styles in [VisualStyleBuilder](https://www.telerik.com/products/winforms/documentation/tools/visual-style-builder/overview). The `CalendarTableElement` corresponds to a single month view in **RadCalendar**. The `CalendarTableElement` is the container of **RadCalendar** cells that represent the days of the month.

### Changing the Today cell styles in Visual Style Builder

1. Open [VisualStyleBuilder](https://www.telerik.com/products/winforms/documentation/tools/visual-style-builder/overview).
2. Export the built-in themes in a specific folder by selecting `File >> Export Built-in Themes`.
3. Load a desired theme from the just exported files by selecting `File >> Open Package`.
4. Select **RadCalendar** and expand the elements up to `CalendarCellElement`.
   ![WinForms RadCalendar VisualStyleBuilder CalendarCellElement](https://www.telerik.com/products/winforms/documentation/assets/44ef91fcce09b836ba48f5801749726f/calendar-themes001.png)
5. Select the `Today` state in the `Element States` window\.Then open `CalCellTodayFill` repository item.
   ![WinForms RadCalendar VisualStyleBuilder Today CalCellTodayFill](https://www.telerik.com/products/winforms/documentation/assets/b9377b85e737d9c6e29e28e044a4473b/calendar-themes002.png)
6. Once the item is opened change the BackColor and close the item.
   ![WinForms RadCalendar VisualStyleBuilder BackColor](https://www.telerik.com/products/winforms/documentation/assets/66cbeefd60d5e924bb908dfe16a63230/calendar-themes003.png)
7. In the `Elements` window select the Font and change its style and sizе. The result can be seen in the bellow image.
   ![WinForms RadCalendar VisualStyleBuilder Font](https://www.telerik.com/products/winforms/documentation/assets/626970485f39c84e1d734acc3bcd9672/calendar-themes004.png)

### Common Styling Properties

You can use this approach to customize all other states styles. The following list shows some of the most important properties that can be changed:

* **BackColor:** Gets or sets the back color which will be used in the gradient fill.

* **BackColor2:** Gets or sets the second back color which will be used in the gradient fill.

* **BackColor3:** Gets or sets the third back color which will be used in the gradient fill.

* **BackColor4:** Gets or sets the fourth back color which will be used in the gradient fill.

* **NumberOfColors:** Gets or sets the number of back colors which will take effect in the gradient fill.

* **GradientStyles:** Gets or sets the gradient style which will be used in the gradient fill.

* **BorderBoxStyle:**  Gets or sets the type of border for the visual element.

* **BorderColor:**  Gets or sets the border color.

* **BorderColor2:** Gets or sets the second border color.

* **BorderColor3:** Gets or sets the third border color.

* **BorderColor4:** Gets or sets the fourth border color.

* **BorderWidth:** Gets or sets the width of the visual element's border

* **DrawFill:** Gets or sets whether the gradient fill of the visual element should be drawn.

* **DrawBorder:** Gets or sets whether the border of the visual element should be drawn.

* **BorderGradientStyle** - Gets or sets the border gradient style.

### Supported States

Each day is represented by an instance of **CalendarCellElement**. The logical states of the day are embodied in the **CalendarCellElement** properties shown below.

* **WeekEnd:** Indicates that the visual element is representing a week end day.

* **OtherMonth:**  Indicates that the visual element is representing a day from another month.

* **Selected:** Indicates whether the current visual element is selected

* **Today:** Indicates whether the visual element is representing the current day.

* **Focused:** Indicates whether the visual element is focused.

* **IsZooming:** Indicates whether the visual element is in zoom-mode.

* **IsHeader:** Indicates whether the visual element is representing a header cell.

* **SpecialDay:** Indicates whether the visual element is representing a special day.

* **OutOfRange:** Indicates whether the visual element is representing a day which is out of the specified range.

## See Also

* [Formating Items](https://www.telerik.com/products/winforms/documentation/controls/calendar/customizing-appearance/formatting-items)

* [Using Templates](https://www.telerik.com/products/winforms/documentation/controls/calendar/customizing-appearance/using-templates)
