Back to Devexpress

DateNavigatorCellAppearance.MouseOverState Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigatorcellappearance-d3662007.md

latest2.7 KB
Original Source

DateNavigatorCellAppearance.MouseOverState Property

Gets or sets appearance properties that are applied to the cell when a mouse pointer is over it. 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 DateNavigatorStateAppearance MouseOverState { get; set; }
vb
Public Property MouseOverState As DateNavigatorStateAppearance

Property Value

TypeDescription
DateNavigatorStateAppearance

A DateNavigatorStateAppearance value that is appearance properties applied to the cell.

|

Remarks

The following code sample sets cells’ Background to Red and CornerRadius to 5 and changes the cell’s Background to Green when the mouse pointer is over the cell:

xaml
<Window ...
  xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
  <dxe:DateNavigator>
    <dxe:DateNavigator.Appearance>
      <dxe:DateNavigatorCellAppearance>
        <dxe:DateNavigatorCellAppearance.NormalState>
          <dxe:DateNavigatorStateAppearance Background="Red" CornerRadius="5"/>
        </dxe:DateNavigatorCellAppearance.NormalState>
        <dxe:DateNavigatorCellAppearance.MouseOverState>
          <dxe:DateNavigatorStateAppearance Background="Green"/>
        </dxe:DateNavigatorCellAppearance.MouseOverState>
      </dxe:DateNavigatorCellAppearance>
    </dxe:DateNavigator.Appearance>
  </dxe:DateNavigator>
</Window>

See Also

DateNavigatorCellAppearance Class

DateNavigatorCellAppearance Members

DevExpress.Xpf.Editors.DateNavigator Namespace