From 5f7e1510f1eea3d5235ccbe6c886e4d9b0864201 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Fri, 5 May 2023 02:31:25 +0800 Subject: [PATCH] feat: move validation errors demo to individual page. --- .../Pages/DataValidationErrorsDemo.axaml | 61 +++++++++++++++++++ .../Pages/DataValidationErrorsDemo.axaml.cs | 18 ++++++ .../Pages/TextBoxDemo.axaml | 17 ------ demo/Semi.Avalonia.Demo/Views/MainView.axaml | 3 + 4 files changed, 82 insertions(+), 17 deletions(-) create mode 100644 demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml create mode 100644 demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml.cs diff --git a/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml new file mode 100644 index 0000000..c00f897 --- /dev/null +++ b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml.cs b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml.cs new file mode 100644 index 0000000..b012533 --- /dev/null +++ b/demo/Semi.Avalonia.Demo/Pages/DataValidationErrorsDemo.axaml.cs @@ -0,0 +1,18 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Markup.Xaml; + +namespace Semi.Avalonia.Demo.Pages; + +public partial class DataValidationErrorsDemo : UserControl +{ + public DataValidationErrorsDemo() + { + InitializeComponent(); + } + + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } +} \ No newline at end of file diff --git a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml index 57bcb57..b12fa1f 100644 --- a/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/TextBoxDemo.axaml @@ -42,23 +42,6 @@ InnerLeftContent="http://" InnerRightContent=".com" IsEnabled="False" /> - - - - - - - - - - diff --git a/demo/Semi.Avalonia.Demo/Views/MainView.axaml b/demo/Semi.Avalonia.Demo/Views/MainView.axaml index 1e517fc..39aa54d 100644 --- a/demo/Semi.Avalonia.Demo/Views/MainView.axaml +++ b/demo/Semi.Avalonia.Demo/Views/MainView.axaml @@ -105,6 +105,9 @@ + + +