Back to Devexpress

DateNavigatorStateAppearance.Foreground Property

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

latest2.5 KB
Original Source

DateNavigatorStateAppearance.Foreground Property

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

Property Value

TypeDescription
Brush

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

|

Remarks

The following code sample specifies the Today and Focused cells’ Background and Foreground properties:

xaml
<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <dxe:DateNavigator>
    <dxe:DateNavigator.Appearance>
      <dxe:DateNavigatorCellAppearance>
        <dxe:DateNavigatorCellAppearance.TodayState>
          <dxe:DateNavigatorStateAppearance Background="SkyBlue" Foreground="AliceBlue"/>
        </dxe:DateNavigatorCellAppearance.TodayState>
        <dxe:DateNavigatorCellAppearance.FocusedState>
          <dxe:DateNavigatorStateAppearance Background="Yellow" Foreground="GreenYellow"/>
        </dxe:DateNavigatorCellAppearance.FocusedState>
      </dxe:DateNavigatorCellAppearance>
    </dxe:DateNavigator.Appearance>
  </dxe:DateNavigator>
</Window>

See Also

DateNavigatorStateAppearance Class

DateNavigatorStateAppearance Members

DevExpress.Xpf.Editors.DateNavigator Namespace