Back to Devexpress

DateNavigatorStateAppearance.Opacity Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigatorstateappearance-c81a5497.md

latest2.3 KB
Original Source

DateNavigatorStateAppearance.Opacity Property

Gets or sets the opacity factor applied to the cell. This is a dependency property.

Namespace : DevExpress.Xpf.Editors.DateNavigator

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public double? Opacity { get; set; }
vb
Public Property Opacity As Double?

Property Value

TypeDescription
Nullable<Double>

The Double value that is represents the opacity value. Expected values are between 0.0 and 1.0.

|

Remarks

The following code sample sets Inactive cells’ Opacity to 0.5 and Background to PapayaWhip:

xaml
<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <dxe:DateNavigator>
    <dxe:DateNavigator.Appearance>
      <dxe:DateNavigatorCellAppearance>
        <dxe:DateNavigatorCellAppearance.InactiveState>
          <dxe:DateNavigatorStateAppearance Opacity="0.5" Background="PapayaWhip"/>
        </dxe:DateNavigatorCellAppearance.InactiveState>
      </dxe:DateNavigatorCellAppearance>
    </dxe:DateNavigator.Appearance>
  </dxe:DateNavigator>
</Window>

See Also

DateNavigatorStateAppearance Class

DateNavigatorStateAppearance Members

DevExpress.Xpf.Editors.DateNavigator Namespace