grid.VisualStateService.PropertyChanged += (s, e) =>
{
if (e.PropertyName != nameof(grid.VisualStateService.MouseHoverCell))
return;
var cell = grid.VisualStateService.MouseHoverCell;
var model = cell?.Item as SomeModel;
grid.MouseHoverStyle = new Style(typeof(DataGridMouseHoverAppearance))
{
Setters =
{
new Setter
{
Property = DataGridBorderAppearance.BackgroundColorProperty,
Value = model.HasFutureAppointments || model.SomeOtherProperty.HasFutureAppointments
? Colors.Blue
: Colors.Red
}
}
};
};Regards,
Didi
Progress Telerik