Describe the bug
When setting the TabWidthMode property of a TabView to SizeToContent, the padding between the header text and the left/right edges of the tab becomes uneven. The header text appears closer to the right side, which affects the visual alignment and consistency of the tabs.
<TabView TabWidthMode="SizeToContent">
<TabViewItem Header="Text" IsClosable="False"/>
<TabViewItem Header="Text2"/>
</TabView>
Steps to reproduce the bug
- Create a TabView, set
TabWidthMode="SizeToContent"
- Create TabViewItem
Expected behavior
The header text should have equal padding on both the left and right sides of the tab, regardless of the SizeToContent property.
Screenshots


NuGet package version
WinUI 3 - Windows App SDK 1.7.1: 1.7.250401001
Windows version
Windows 11 (23H2): Build 22631
Additional context
No response
Describe the bug
When setting the
TabWidthModeproperty of aTabViewtoSizeToContent, the padding between the header text and the left/right edges of the tab becomes uneven. The header text appears closer to the right side, which affects the visual alignment and consistency of the tabs.Steps to reproduce the bug
TabWidthMode="SizeToContent"Expected behavior
The header text should have equal padding on both the left and right sides of the tab, regardless of the
SizeToContentproperty.Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.7.1: 1.7.250401001
Windows version
Windows 11 (23H2): Build 22631
Additional context
No response