From 9758e1b826d468bcc31dcdfa571c5b893f745f4d Mon Sep 17 00:00:00 2001 From: rabbitism Date: Sun, 25 Aug 2024 21:49:48 +0800 Subject: [PATCH] feat: improve dialog demo layout. --- demo/Ursa.Demo/Dialogs/PlainDialog.axaml | 2 +- demo/Ursa.Demo/Pages/DialogDemo.axaml | 260 +++++++++------ .../ViewModels/DialogDemoViewModel.cs | 299 +++++++++++------- .../Controls/Dialog/CustomDialogControl.cs | 8 +- .../Controls/Dialog/DefaultDialogControl.cs | 9 +- .../Controls/Dialog/DefaultDialogWindow.cs | 8 +- src/Ursa/Controls/Dialog/Dialog.cs | 1 + .../Dialog/Options/OverlayDialogOptions.cs | 30 +- 8 files changed, 388 insertions(+), 229 deletions(-) diff --git a/demo/Ursa.Demo/Dialogs/PlainDialog.axaml b/demo/Ursa.Demo/Dialogs/PlainDialog.axaml index 8543273..ac0a9ec 100644 --- a/demo/Ursa.Demo/Dialogs/PlainDialog.axaml +++ b/demo/Ursa.Demo/Dialogs/PlainDialog.axaml @@ -7,7 +7,7 @@ x:DataType="local:PlainDialogViewModel" x:CompileBindings="True" x:Class="Ursa.Demo.Dialogs.PlainDialog"> - + diff --git a/demo/Ursa.Demo/Pages/DialogDemo.axaml b/demo/Ursa.Demo/Pages/DialogDemo.axaml index 8ff3534..00354fd 100644 --- a/demo/Ursa.Demo/Pages/DialogDemo.axaml +++ b/demo/Ursa.Demo/Pages/DialogDemo.axaml @@ -6,115 +6,169 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:u="https://irihi.tech/ursa" xmlns:vm="using:Ursa.Demo.ViewModels" - d:DesignHeight="450" + d:DesignHeight="1200" d:DesignWidth="800" x:CompileBindings="True" x:DataType="vm:DialogDemoViewModel" mc:Ignorable="d"> - - - - - - - - - - - - - - - - - -