From 974afa33c5fddefbd8d372ddea37e8a884fe9d46 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Thu, 8 Feb 2024 23:15:26 +0800 Subject: [PATCH] feat: add two attached properties to mark an custom element triggering drag move or close. --- demo/Ursa.Demo/Dialogs/DialogWithAction.axaml | 2 + src/Ursa/Controls/Dialog/DialogControlBase.cs | 144 +++++++++++++++--- .../Controls/Dialog/Options/DialogOptions.cs | 1 + .../Dialog/Options/OverlayDialogOptions.cs | 1 + src/Ursa/Controls/Dialog/OverlayDialog.cs | 2 + 5 files changed, 128 insertions(+), 22 deletions(-) diff --git a/demo/Ursa.Demo/Dialogs/DialogWithAction.axaml b/demo/Ursa.Demo/Dialogs/DialogWithAction.axaml index 7ab2c67..4132581 100644 --- a/demo/Ursa.Demo/Dialogs/DialogWithAction.axaml +++ b/demo/Ursa.Demo/Dialogs/DialogWithAction.axaml @@ -5,6 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:Ursa.Demo.Dialogs" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:u="https://irihi.tech/ursa" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" d:DesignHeight="450" @@ -30,6 +31,7 @@ HorizontalAlignment="Right" Orientation="Horizontal" Spacing="8"> +