From d75a4c549e6c5854f53ec02a472a47e505004e2d Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Sat, 6 May 2023 21:54:35 +0800 Subject: [PATCH] feat: add validation errors to NumericUpDown. --- .../Pages/DataValidationErrorsDemo.axaml | 7 +- .../Controls/NumericUpDown.axaml | 80 ++++++++++++------- 2 files changed, 51 insertions(+), 36 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml index df5f491..a5fc5be 100644 --- a/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml @@ -8,17 +8,12 @@ d:DesignHeight="450" d:DesignWidth="800" mc:Ignorable="d"> - + - - - - - diff --git a/src/Semi.Avalonia/Controls/NumericUpDown.axaml b/src/Semi.Avalonia/Controls/NumericUpDown.axaml index fe21510..f5bd4d2 100644 --- a/src/Semi.Avalonia/Controls/NumericUpDown.axaml +++ b/src/Semi.Avalonia/Controls/NumericUpDown.axaml @@ -5,45 +5,65 @@ - - - - + + + + + - - + + + + + + - + \ No newline at end of file