DateNavigatorCellAppearance.DisabledState Property
Gets or sets appearance properties that are applied to the cell when its disabled. This is a dependency property.
Namespace: DevExpress.Xpf.Editors.DateNavigator
Assembly: DevExpress.Xpf.Core.v24.2.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 specifies disabled cells’ Opacity and Foreground properties:
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<dxe:DateNavigator x:Name="DateNav">
<dxe:DateNavigator.Appearance>
<dxe:DateNavigatorCellAppearance>
<dxe:DateNavigatorCellAppearance.DisabledState>
<dxe:DateNavigatorStateAppearance Opacity="0.5" Foreground="PaleTurquoise"/>
</dxe:DateNavigatorCellAppearance.DisabledState>
</dxe:DateNavigatorCellAppearance>
</dxe:DateNavigator.Appearance>
</dxe:DateNavigator>
</Window>
DateTime date = new DateTime(2020, 3, 18, 23, 49, 0);
DateNav.DisabledDates.Add(date);
DateNav.DisabledDates.Add(DateTime.Now.AddDays(-1.0));
See Also