From 5a038552e56bb19b7039845c205d1189a0a8f513 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Thu, 9 Jan 2025 23:00:14 +0800
Subject: [PATCH] fix: fix ContextFlyout invalid issue & Simplify Button groups
in MessageBox.
---
.../Controls/MessageBox.axaml | 71 +++++++++++--------
.../StyleClassTests/StyleClassTests.cs | 2 +-
2 files changed, 43 insertions(+), 30 deletions(-)
diff --git a/src/Ursa.Themes.Semi/Controls/MessageBox.axaml b/src/Ursa.Themes.Semi/Controls/MessageBox.axaml
index ab043e1..050af3c 100644
--- a/src/Ursa.Themes.Semi/Controls/MessageBox.axaml
+++ b/src/Ursa.Themes.Semi/Controls/MessageBox.axaml
@@ -3,10 +3,35 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:u="https://irihi.tech/ursa"
xmlns:helpers="clr-namespace:Irihi.Avalonia.Shared.Helpers;assembly=Irihi.Avalonia.Shared">
-
+
+
+
+
+
+
+
+
+
-
+
@@ -80,6 +105,7 @@
Name="PART_ContentPresenter"
VerticalAlignment="Center"
Content="{TemplateBinding Content}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
TextAlignment="Left"
TextWrapping="Wrap" />
@@ -87,20 +113,13 @@
-
-
-
-
+
+
+
+
@@ -166,7 +185,7 @@
-
+
@@ -178,7 +197,7 @@
VerticalAlignment="Center"
Classes="Shadow"
ClipToBounds="False"
- Background="{DynamicResource SemiColorBackground2}"
+ Background="{DynamicResource SemiColorBackground3}"
CornerRadius="{TemplateBinding CornerRadius}"
IsHitTestVisible="True"
Theme="{DynamicResource CardBorder}">
@@ -227,6 +246,7 @@
Name="PART_ContentPresenter"
VerticalAlignment="Center"
Content="{TemplateBinding Content}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
TextAlignment="Left"
TextWrapping="Wrap" />
@@ -234,20 +254,13 @@
-
-
-
-
+
+
+
+
@@ -257,7 +270,7 @@