# Customizing the Calendar and Clock

The `RadDateTimePicker` control in Progress® Telerik® UI for WPF exposes properties for styling the calendar and clock in its dropdown.

## Style the Calendar

To customize the `RadCalendar`, create a `Style` targeting `RadCalendar` and assign it to the `CalendarStyle` property of `RadDateTimePicker`.

If you use the [Xaml assemblies](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml), extract the complete `RadCalendar` style, including its `ControlTemplate`, from `Telerik.Windows.Controls.Input.xaml`. For extraction instructions, see [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates). If you use NoXaml assemblies, base the custom style on the default `RadCalendarStyle` resource instead.

The following example uses `CalendarStyle` to hide the week names:

```XAML
<Window.Resources>
    
    <Style x:Key="CalendarStyle" TargetType="telerik:RadCalendar" BasedOn="{StaticResource RadCalendarStyle}">
        <Setter Property="AreWeekNamesVisible" Value="False" />
    </Style>
</Window.Resources>
<Grid>
    <telerik:RadDateTimePicker VerticalAlignment="Center" HorizontalAlignment="Center" CalendarStyle="{StaticResource CalendarStyle}" />
</Grid>
```

> caption Calendar with week names hidden in the Office2016 theme

![RadCalendar with week names removed](https://www.telerik.com/products/wpf/documentation/assets/f734615c1f32af9c171cd186afcf7b47/datetimepicker_stylingthecalendar.png)

The calendar uses `CalendarButton` controls to represent days, months, weeks, and other values. Customize them with the `DayButtonStyle`, `MonthButtonStyle`, `YearButtonStyle`, and `DecadeButtonStyle` properties of `RadCalendar`.

Each button receives a [CalendarButtonContent](https://docs.telerik.com/devtools/wpf/api/telerik.windows.controls.calendar.calendarbuttoncontent) object as its data context. This object includes the button type, date, and selection state. The following example sets a tooltip for the day buttons:

```XAML
<telerik:RadDatePicker>
    <telerik:RadDatePicker.CalendarStyle>
        <Style TargetType="telerik:RadCalendar">
            <Setter Property="DayButtonStyle">
                <Setter.Value>
                    <Style TargetType="calendar:CalendarButton">
                        <Setter Property="telerik:RadToolTipService.ToolTipContent" Value="{Binding Date}"/>
                    </Style>
                </Setter.Value>
            </Setter>
        </Style>
    </telerik:RadDatePicker.CalendarStyle>
</telerik:RadDatePicker>
```

## Style the Clock

Create a style for `RadClock` and assign it to the `ClockStyle` property of `RadDateTimePicker`. The following example changes the clock's flow direction:

```XAML
<Window.Resources>
    

    <Style x:Key="ClockStyle" TargetType="telerik:RadClock" BasedOn="{StaticResource RadClockStyle}">
        <Setter Property="FlowDirection" Value="RightToLeft" />
    </Style>
</Window.Resources>
<Grid>
    <telerik:RadDateTimePicker VerticalAlignment="Center" HorizontalAlignment="Center"  ClockStyle="{StaticResource ClockStyle}" />
</Grid>
```

> caption Clock with right-to-left flow direction in the Office2016 theme

![RadClock with right-to-left flow direction](https://www.telerik.com/products/wpf/documentation/assets/ddd2999682857010735a33646bca6a09/datetimepicker_stylingtheclock.png)

## See Also

* [Date Items](https://www.telerik.com/products/wpf/documentation/controls/raddatetimepicker/features/date-items)
* [Clock Items](https://www.telerik.com/products/wpf/documentation/controls/raddatetimepicker/features/clock-items)
* [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates)
