DateNavigatorCellAppearance.SpecialDateState Property
Gets or sets appearance properties that are applied to the cell when the cell is a special date. This is a dependency property.
Namespace: DevExpress.Xpf.Editors.DateNavigator
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
DateNavigatorStateAppearance | A DateNavigatorStateAppearance value that is appearance properties applied to the cell. |
Remarks
The following code sample adds special date cells and specifies their Background, BorderBrush, and BorderThickness properties:
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<dxe:DateNavigator x:Name="DateNav">
<dxe:DateNavigator.Appearance>
<dxe:DateNavigatorCellAppearance>
<dxe:DateNavigatorCellAppearance.SpecialDateState>
<dxe:DateNavigatorStateAppearance BorderBrush="Brown" BorderThickness="1" Background="Red"/>
</dxe:DateNavigatorCellAppearance.SpecialDateState>
</dxe:DateNavigatorCellAppearance>
</dxe:DateNavigator.Appearance>
</dxe:DateNavigator>
</Window>
DateTime date = new DateTime(2020, 4, 18, 23, 49, 0);
DateNav.SpecialDates.Add(date);
DateNav.SpecialDates.Add(DateTime.Now.AddDays(2.0));
See Also