wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigatorrequestcellappearanceeventargs-f6a9f2d6.md
Gets the cell state.
Namespace : DevExpress.Xpf.Editors.DateNavigator
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public DateNavigatorCalendarCellState CellState { get; }
Public ReadOnly Property CellState As DateNavigatorCalendarCellState
| Type | Description |
|---|---|
| DateNavigatorCalendarCellState |
Any of the flagged enumeration values.
|
Available values:
| Name | Description |
|---|---|
| None |
The cell is in the normal state.
| | Focused |
The cell is focused.
| | Holiday |
The cell is a holiday.
| | Inactive |
The cell is inactive.
| | Selected |
The cell is focused.
| | Special |
The cell is a special day.
| | Today |
The cell is today.
| | Disabled |
The cell is disabled.
|
private void DateNav_RequestCellAppearance(object sender, DevExpress.Xpf.Editors.DateNavigator.DateNavigatorRequestCellAppearanceEventArgs args) {
DateTime day = new DateTime(2020, 9, 13);
if (args.DateTime.Date == day && args.CellState.HasFlag(DevExpress.Xpf.Editors.DateNavigator.DateNavigatorCalendarCellState.Selected))
{
args.Appearance.Background = Brushes.Blue;
args.Appearance.BorderBrush = Brushes.Red;
args.CacheValue = true;
}
}
See Also
DateNavigatorRequestCellAppearanceEventArgs Class