From 554471a2b9efb12c2c56d1cf652a74a6d3706338 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Fri, 11 Sep 2026 15:33:51 +0000 Subject: [PATCH] fluent 2 - base tabstrip on selectorbar control --- .../Controls/TabStrip.xaml | 2 + .../Controls/TabStripItem.xaml | 234 ++++++++++++------ 2 files changed, 165 insertions(+), 71 deletions(-) diff --git a/src/Avalonia.Themes.Fluent2/Controls/TabStrip.xaml b/src/Avalonia.Themes.Fluent2/Controls/TabStrip.xaml index ecaad94482..629ee16c39 100644 --- a/src/Avalonia.Themes.Fluent2/Controls/TabStrip.xaml +++ b/src/Avalonia.Themes.Fluent2/Controls/TabStrip.xaml @@ -10,8 +10,10 @@ + 0,4 + + xmlns="https://github.com/avaloniaui" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + x:ClassModifier="internal"> @@ -12,96 +12,188 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - 48 - 3 - 1.5 + 1 + 1 + -2,0 + 0 + 12,10,12,7 + 0 + -2 + 3 + 4 + 16 + 0.8 + 8 + + + + + + - - - - - + + + + + + - + + + - - - - - - + Name="PART_LayoutRoot" + Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + CornerRadius="{TemplateBinding CornerRadius}"> + - - + Grid.ColumnSpan="2" + Margin="{TemplateBinding Padding}" + Name="PART_ContentPresenter" + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" + VerticalAlignment="{TemplateBinding VerticalContentAlignment}" + Content="{TemplateBinding Content}" + ContentTemplate="{TemplateBinding ContentTemplate}" /> + + + + + + + + + + - - - + + - - + + + + - - + + + + + + + + + + + + + +