Back to Devexpress

DateNavigatorRequestCellAppearanceEventArgs.CacheValue Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigatorrequestcellappearanceeventargs-e3f4b629.md

latest2.9 KB
Original Source

DateNavigatorRequestCellAppearanceEventArgs.CacheValue Property

Gets or sets whether the event should cache the date cell’s appearance value in the specified state.

Namespace : DevExpress.Xpf.Editors.DateNavigator

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool CacheValue { get; set; }
vb
Public Property CacheValue As Boolean

Property Value

TypeDescription
Boolean

true , to cache the date cell’s appearance value; otherwise, false.

|

Remarks

The RequestCellAppearanceEvent is raised for all displayed date cells each time when the cell state is changed. DateNavigator changes a date cell state even when you mouse over or select a cell.

Tip

Refer to the DateNavigatorCalendarCellState enum to get the cell state list.

You can set the CacheValue event argument to true to save the combination of the CalendarView and Appearance properties for a date cell’s CellState on the next event raise.

If the date cell’s properties are cached, the RequestCellAppearanceEvent will not be raised for this date cell.

Use the RefreshCellAppearances() method to clear a date cell’s cached values. If the CacheValue event argument is still true , DateNavigator update a date cell’s cached values when the RequestCellAppearanceEvent is raised the next time.

See Also

DateNavigatorRequestCellAppearanceEventArgs Class

DateNavigatorRequestCellAppearanceEventArgs Members

DevExpress.Xpf.Editors.DateNavigator Namespace