Back to Devexpress

DateNavigatorRequestCellAppearanceEventArgs.IsMouseOver Property

wpf-devexpress-dot-xpf-dot-editors-dot-datenavigator-dot-datenavigatorrequestcellappearanceeventargs-0ae935b7.md

latest1.9 KB
Original Source

DateNavigatorRequestCellAppearanceEventArgs.IsMouseOver Property

Gets whether the mouse cursor is over the cell.

Namespace : DevExpress.Xpf.Editors.DateNavigator

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool IsMouseOver { get; }
vb
Public ReadOnly Property IsMouseOver As Boolean

Property Value

TypeDescription
Boolean

true , if the mouse cursor is over the cell; otherwise, false.

|

Remarks

csharp
private void DateNav_RequestCellAppearance(object sender, DevExpress.Xpf.Editors.DateNavigator.DateNavigatorRequestCellAppearanceEventArgs args) {
    DateTime day = new DateTime(2020, 9, 25);
      if (args.DateTime.Date == day && args.IsMouseOver ) {
          args.Appearance.Background = Brushes.GreenYellow;
          args.Appearance.Foreground = Brushes.White;
          args.CacheValue=true;
      }
}

See Also

DateNavigatorRequestCellAppearanceEventArgs Class

DateNavigatorRequestCellAppearanceEventArgs Members

DevExpress.Xpf.Editors.DateNavigator Namespace