From d278a646e46d3a9fab748155cd22c7b6adcde9b5 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 12 May 2024 17:23:05 +0800 Subject: [PATCH] feat: clear preview after reselect. --- src/Ursa/Controls/DateTimePicker/Calendar.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ursa/Controls/DateTimePicker/Calendar.cs b/src/Ursa/Controls/DateTimePicker/Calendar.cs index e6d504a..11a4f02 100644 --- a/src/Ursa/Controls/DateTimePicker/Calendar.cs +++ b/src/Ursa/Controls/DateTimePicker/Calendar.cs @@ -119,6 +119,7 @@ public class Calendar: TemplatedControl if (_state == DatePickerState.None) { _monthGrid.ClearSelection(); + _monthGrid.ClearPreview(); _monthGrid.MarkSelection(date, null); _state = DatePickerState.PreviewEnd; StartDate = date;