From 555ecf16d9f50b6c3076ae86c18056aff2606ab4 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Mon, 13 Apr 2026 22:46:53 +0800 Subject: [PATCH] Add icons to TabbedPage content and improve layout. (#801) * fix: add icons to TabbedPage content and improve layout. * fix: only update Placement=Top/Bottom in TabbedPage. --- .../Pages/TabbedPageDemo.axaml | 6 +- src/Semi.Avalonia/Controls/TabItem.axaml | 5 +- src/Semi.Avalonia/Controls/TabbedPage.axaml | 76 ++++++++++++++++++- 3 files changed, 79 insertions(+), 8 deletions(-) diff --git a/demo/Semi.Avalonia.Demo/Pages/TabbedPageDemo.axaml b/demo/Semi.Avalonia.Demo/Pages/TabbedPageDemo.axaml index 0f78430..bc67515 100644 --- a/demo/Semi.Avalonia.Demo/Pages/TabbedPageDemo.axaml +++ b/demo/Semi.Avalonia.Demo/Pages/TabbedPageDemo.axaml @@ -50,7 +50,7 @@ - + - + - + diff --git a/src/Semi.Avalonia/Controls/TabItem.axaml b/src/Semi.Avalonia/Controls/TabItem.axaml index 1f721c0..21a1d0f 100644 --- a/src/Semi.Avalonia/Controls/TabItem.axaml +++ b/src/Semi.Avalonia/Controls/TabItem.axaml @@ -31,7 +31,6 @@ @@ -61,6 +60,10 @@ + + + + + + + + + + + + + Theme="{StaticResource CardTabControl}"> + + + + + + + + + + + + + + Theme="{StaticResource ButtonTabControl}"> + + + + + + + + + + + +