Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to make DateEdit highlight certain dates like in DateNavigator

$
0
0

By default, the DateNavigator control allows you to set a collection of special dates and highlight them in bold font.

This example illustrates how to enable similar behavior in DateEdit.

First, it is necessary to create a DateEdit descendant and customize the "{dxet:DateEditThemeKey ResourceKey=CellButtonTemplate}" template.

Then, register two dependency properties - the SpecialDates property that contains a list of dates and the SpecialBorderStyle property that should contain a custom border style for date highlighting.


Viewing all articles
Browse latest Browse all 7205

Trending Articles