From 331141197d458ae0e846b19c453314f1c5f69f6e Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Thu, 30 Apr 2026 14:53:38 +0800 Subject: [PATCH] Enhance DrawerPage (#813) * feat: enhance navigation and UI structure in MainView and Application. * fix: using ContentPreseter and add HeaderTemplate. * feat: add locale resource for navigation drawer toggle button text. * feat: add customizations for DrawerPageDemo. * fix: fix DrawerPage title vertical alignment to Center. * Update DrawerPageDemo.axaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update DrawerPageDemo.axaml.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: fix bottom bar styles. * fix: update border background color in DrawerPageDemo.axaml. --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Pages/DrawerPageDemo.axaml | 93 +++++++++++----- .../Pages/DrawerPageDemo.axaml.cs | 49 +-------- src/Semi.Avalonia/Controls/DrawerPage.axaml | 100 ++++++++---------- src/Semi.Avalonia/Locale/de-de.axaml | 4 +- src/Semi.Avalonia/Locale/en-gb.axaml | 4 +- src/Semi.Avalonia/Locale/en-us.axaml | 4 +- src/Semi.Avalonia/Locale/es-es.axaml | 4 +- src/Semi.Avalonia/Locale/fr-fr.axaml | 2 + src/Semi.Avalonia/Locale/it-ch.axaml | 4 +- src/Semi.Avalonia/Locale/it-it.axaml | 4 +- src/Semi.Avalonia/Locale/ja-jp.axaml | 4 +- src/Semi.Avalonia/Locale/ko-kr.axaml | 4 +- src/Semi.Avalonia/Locale/nl-be.axaml | 4 +- src/Semi.Avalonia/Locale/nl-nl.axaml | 4 +- src/Semi.Avalonia/Locale/pl-pl.axaml | 4 +- src/Semi.Avalonia/Locale/ru-ru.axaml | 4 +- src/Semi.Avalonia/Locale/uk-ua.axaml | 4 +- src/Semi.Avalonia/Locale/zh-cn.axaml | 4 +- src/Semi.Avalonia/Locale/zh-tw.axaml | 4 +- .../Themes/Light/DrawerPage.axaml | 2 +- .../Themes/Shared/DrawerPage.axaml | 4 + 21 files changed, 162 insertions(+), 148 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/DrawerPageDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/DrawerPageDemo.axaml index 0636b90..f5ea1a4 100644 --- a/demo/Semi.Avalonia.Demo/Pages/DrawerPageDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/DrawerPageDemo.axaml @@ -10,45 +10,84 @@ - + -