Back to Devexpress

DateNavigatorStateAppearance.Background Property

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

latest2.6 KB
Original Source

DateNavigatorStateAppearance.Background Property

Gets or sets the brush used to paint the cell’s background. 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 Brush Background { get; set; }
vb
Public Property Background As Brush

Property Value

TypeDescription
Brush

A Brush object used to paint the cell’s background.

|

Remarks

The following code sample specifies Holiday cells’ Background , BorderBrush, BorderThickness, and FontWeight properties:

xaml
<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <dxe:DateNavigator>
    <dxe:DateNavigator.Appearance>
      <dxe:DateNavigatorCellAppearance>
        <dxe:DateNavigatorCellAppearance.HolidayState>
          <dxe:DateNavigatorStateAppearance Background="FloralWhite" 
                                           BorderBrush="Black" 
                                           BorderThickness="1" 
                                           FontWeight="Thin"/>
        </dxe:DateNavigatorCellAppearance.HolidayState>
      </dxe:DateNavigatorCellAppearance>
    </dxe:DateNavigator.Appearance>
  </dxe:DateNavigator>
</Window>

See Also

DateNavigatorStateAppearance Class

DateNavigatorStateAppearance Members

DevExpress.Xpf.Editors.DateNavigator Namespace