From 38676f729e7ad00c0cb3b445067411b9941900ec Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 25 Aug 2024 23:32:26 +0800 Subject: [PATCH] feat: improve drawer demo. fix drawer close button visibility issue. --- demo/Ursa.Demo/Dialogs/CustomDemoDialog.axaml | 12 +-- .../Dialogs/DefaultDemoDialogViewModel.cs | 9 +- demo/Ursa.Demo/Dialogs/DialogWithAction.axaml | 45 -------- .../Dialogs/DialogWithAction.axaml.cs | 11 -- .../Dialogs/DialogWithActionViewModel.cs | 51 --------- demo/Ursa.Demo/Dialogs/PlainDialog.axaml | 14 --- demo/Ursa.Demo/Dialogs/PlainDialog.axaml.cs | 11 -- .../Ursa.Demo/Dialogs/PlainDialogViewModel.cs | 27 ----- demo/Ursa.Demo/Pages/DrawerDemo.axaml | 100 +++++------------- .../ViewModels/DrawerDemoViewModel.cs | 100 +++++++----------- .../Controls/Dialog/DefaultDialogControl.cs | 2 +- .../Controls/Drawer/DefaultDrawerControl.cs | 8 +- 12 files changed, 79 insertions(+), 311 deletions(-) delete mode 100644 demo/Ursa.Demo/Dialogs/DialogWithAction.axaml delete mode 100644 demo/Ursa.Demo/Dialogs/DialogWithAction.axaml.cs delete mode 100644 demo/Ursa.Demo/Dialogs/DialogWithActionViewModel.cs delete mode 100644 demo/Ursa.Demo/Dialogs/PlainDialog.axaml delete mode 100644 demo/Ursa.Demo/Dialogs/PlainDialog.axaml.cs delete mode 100644 demo/Ursa.Demo/Dialogs/PlainDialogViewModel.cs diff --git a/demo/Ursa.Demo/Dialogs/CustomDemoDialog.axaml b/demo/Ursa.Demo/Dialogs/CustomDemoDialog.axaml index b3f53eb..3b38ce3 100644 --- a/demo/Ursa.Demo/Dialogs/CustomDemoDialog.axaml +++ b/demo/Ursa.Demo/Dialogs/CustomDemoDialog.axaml @@ -12,9 +12,9 @@ mc:Ignorable="d"> - - - + + + @@ -69,9 +69,9 @@ HorizontalAlignment="Right" Orientation="Horizontal" Spacing="8"> -