From 9d394753d7c208678cd7331f07e6060771f34af6 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 3 Nov 2024 22:26:14 +0800 Subject: [PATCH] feat: 1. Update dependency. 2. Provide sample for Dialog StyleClass option. --- demo/Ursa.Demo/App.axaml | 11 +- demo/Ursa.Demo/Pages/DialogDemo.axaml | 30 +++ .../ViewModels/DialogDemoViewModel.cs | 5 +- demo/Ursa.Demo/Views/MainWindow.axaml | 18 +- src/Ursa.Themes.Semi/Behaviors/ClassHelper.cs | 69 ------- .../Controls/AutoCompleteBox.axaml | 4 +- src/Ursa.Themes.Semi/Controls/Dialog.axaml | 190 ++++++++++-------- .../Controls/EnumSelector.axaml | 4 +- src/Ursa.Themes.Semi/Styles/PinCode.axaml | 7 +- src/Ursa/Ursa.csproj | 3 +- 10 files changed, 175 insertions(+), 166 deletions(-) delete mode 100644 src/Ursa.Themes.Semi/Behaviors/ClassHelper.cs diff --git a/demo/Ursa.Demo/App.axaml b/demo/Ursa.Demo/App.axaml index ed45456..ccab542 100644 --- a/demo/Ursa.Demo/App.axaml +++ b/demo/Ursa.Demo/App.axaml @@ -3,9 +3,18 @@ xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:semi="https://irihi.tech/semi" - xmlns:u-semi="https://irihi.tech/ursa/themes/semi"> + xmlns:u-semi="https://irihi.tech/ursa/themes/semi" + xmlns:u="https://irihi.tech/ursa" + xmlns:helpers="clr-namespace:Irihi.Avalonia.Shared.Helpers;assembly=Irihi.Avalonia.Shared"> + + + \ No newline at end of file diff --git a/demo/Ursa.Demo/Pages/DialogDemo.axaml b/demo/Ursa.Demo/Pages/DialogDemo.axaml index 2b4fe18..b50c1ec 100644 --- a/demo/Ursa.Demo/Pages/DialogDemo.axaml +++ b/demo/Ursa.Demo/Pages/DialogDemo.axaml @@ -51,6 +51,21 @@ IsThreeState="True" /> + + + + + + + + +