From 947a5041e8a69f38b0efd1f829c6cd854bace332 Mon Sep 17 00:00:00 2001 From: rabbitism Date: Thu, 7 Mar 2024 15:55:39 +0800 Subject: [PATCH] feat: fix various nav menu layout issue. --- demo/Ursa.Demo/Pages/NavMenuDemo.axaml | 1 + demo/Ursa.Demo/Views/MainView.axaml | 3 ++- src/Ursa.Themes.Semi/Controls/NavMenu.axaml | 23 ++++++++++++--------- src/Ursa/Controls/NavMenu/NavMenu.cs | 18 ++++++++++++++++ 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/demo/Ursa.Demo/Pages/NavMenuDemo.axaml b/demo/Ursa.Demo/Pages/NavMenuDemo.axaml index f1ac1cd..885d36e 100644 --- a/demo/Ursa.Demo/Pages/NavMenuDemo.axaml +++ b/demo/Ursa.Demo/Pages/NavMenuDemo.axaml @@ -38,6 +38,7 @@ Theme="{DynamicResource CardBorder}"> @@ -58,7 +59,7 @@ - + @@ -51,6 +54,7 @@ Name="PART_Border" Grid.Row="0" MinHeight="32" + HorizontalAlignment="Stretch" Background="{TemplateBinding u:NavMenuItem.Background}" CornerRadius="4" Cursor="Hand"> @@ -164,7 +168,7 @@ - - +