Repository navigation
Closed
Labels
area/pivotCategorizes an issue as relevant to pivot controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codedifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingnative-onlyOnly affects native renderers (Android Views / UIKit / WASM DOM); close after 7.0project/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Description
How to reproduce it (as minimally and precisely as possible)
-
In Uno's default
Pivotstyle, replace<Grid x:Name="Panel"with<PivotPanel x:Name="Panel"(matching Windows). -
Run either of the pivot samples.
Current behavior
The first tab header stretches the entire width, no others are visible.
Expected behavior
Headers don't stretch, all headers are visible.
Environment
Nuget Package:
Package Version(s):
Affected platform(s): Tested on iOS, probably affects others
- iOS
- [?] Android
- [?] WebAssembly
- WebAssembly renderers for Xamarin.Forms
- macOS
- Windows
- Build tasks
- Solution Templates
Visual Studio:
- 2017 (version: )
- 2019 (version: )
- for Mac (version: )
Relevant plugins:
- Resharper (version: )
Anything else we need to know?
Metadata
Metadata
Assignees
Labels
area/pivotCategorizes an issue as relevant to pivot controlarea/porting 🖨️Categorizes an issue or PR as relevant for porting of WinUI codedifficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIhas-repro-branchkind/bugSomething isn't workingnative-onlyOnly affects native renderers (Android Views / UIKit / WASM DOM); close after 7.0project/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)project/layout 🧱Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Activity
MartinZikmund commentedon Jun 1, 2021
@ajpinedam can I unassign you for now, or are you planning to look into pivot next?
[-]PivotPanel in Pivot only shows one header[/-][+]`PivotPanel` in `Pivot` only shows one header[/+]Pivot#21080github-actions commentedon Jul 26, 2025
Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.
MartinZikmund commentedon Jul 27, 2025
Still relevant
test: Reproduce PivotPanel only showing first header
MartinZikmund commentedon Apr 7, 2026
Repro generator
Runtime test(s) added in branch
dev/mazi/repro/3596:src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_Pivot.cs→When_PivotPanel_Used_Multiple_Headers_Are_VisiblePivotHeaderItemelements haveActualWidth > 0and none stretch to the full pivot width. The original bug was reported on iOS where native layout +PivotPanelreplacement caused only the first header to be visible. The branch serves as a regression guard for the managed path.MartinZikmund commentedon Nov 7, 2026
The default Pivot templates now use
PivotPanelas the "Panel" part, matching WinUI, after the panel was ported in #25143, and headers are laid out side by side at their natural width. There is also a regression test for this case:uno/src/Uno.UI.RuntimeTests/Microsoft/UI/Xaml/Controls/Given_Pivot.cs
Lines 250 to 281 in 1f84af6
This was checked as part of an AI-assisted backlog review by reading the code, not by running it. If it looks wrong, please reply and we will take another look.