From 35933eb1cdd8a06d970f061fd67db41a648382e4 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Fri, 19 Jul 2024 00:46:15 +0800 Subject: [PATCH] feat: make sure clear button works. make sure text cleared if lost focus with invalid data. --- demo/Ursa.Demo/Pages/DatePickerDemo.axaml | 4 +- .../Controls/DatePicker.axaml | 14 +- .../Controls/DateRangePicker.axaml | 8 +- .../DateTimePicker/DateRangePicker.cs | 136 ++++++++++-------- 4 files changed, 92 insertions(+), 70 deletions(-) diff --git a/demo/Ursa.Demo/Pages/DatePickerDemo.axaml b/demo/Ursa.Demo/Pages/DatePickerDemo.axaml index bcf17978..0319ad66 100644 --- a/demo/Ursa.Demo/Pages/DatePickerDemo.axaml +++ b/demo/Ursa.Demo/Pages/DatePickerDemo.axaml @@ -8,7 +8,7 @@ - - + + diff --git a/src/Ursa.Themes.Semi/Controls/DatePicker.axaml b/src/Ursa.Themes.Semi/Controls/DatePicker.axaml index 518c63c6..6ddb92c9 100644 --- a/src/Ursa.Themes.Semi/Controls/DatePicker.axaml +++ b/src/Ursa.Themes.Semi/Controls/DatePicker.axaml @@ -1,6 +1,7 @@ @@ -30,7 +31,7 @@ + ColumnDefinitions="*, Auto">