From 9b2e2d76fe84c76ee4e433c0dc9628172dd4810d Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Fri, 11 Sep 2026 13:03:36 +0000 Subject: [PATCH] fluent 2 - fix tabbed page fluent design --- .../Controls/TabbedPage.xaml | 275 ++++++++++++++---- 1 file changed, 219 insertions(+), 56 deletions(-) diff --git a/src/Avalonia.Themes.Fluent2/Controls/TabbedPage.xaml b/src/Avalonia.Themes.Fluent2/Controls/TabbedPage.xaml index b92731dd3b..6b03a96909 100644 --- a/src/Avalonia.Themes.Fluent2/Controls/TabbedPage.xaml +++ b/src/Avalonia.Themes.Fluent2/Controls/TabbedPage.xaml @@ -2,22 +2,86 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -62,12 +126,16 @@ 4 + the other placements are corrected via TabStripPlacement styles below. --> 0 0,1,0,0 0 0 + 3 + 16 + 2 + @@ -109,7 +177,7 @@ @@ -128,10 +196,10 @@ - + - - + + @@ -143,6 +211,8 @@ @@ -173,7 +243,7 @@ Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" FontFamily="{TemplateBinding FontFamily}" - FontSize="{DynamicResource TabbedPageTabItemHeaderFontSize}" + FontSize="{TemplateBinding FontSize}" FontWeight="{TemplateBinding FontWeight}" /> @@ -189,32 +259,151 @@ + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -228,8 +417,8 @@ + Height="{DynamicResource TabbedPageTabItemSelectionIndicatorWidth}" + Width="{DynamicResource TabbedPageTabItemSelectionIndicatorHeight}" /> @@ -238,32 +427,6 @@ - - - - - - - - - - - - - - -