microsoft / microsoft/microsoft-ui-xaml

Problem with the header style in Pivot?

Open
#10,765 0 comments 0 reactions 0 assignees View on GitHub
area-Pivot needs-triage
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Setting the header style globally does not display properly, only a single header per PiovtItem is OK



<Setter Property="Header">
<Setter.Value>
<DataTemplate>
<TextBlock Style="{StaticResource BodyStrongTextBlockStyle}" Text="{Binding}" />
</DataTemplate>
</Setter.Value>
</Setter>






。。。。

### Steps to reproduce the bug

1

### Expected behavior

_No response_

### Screenshots

Image

### NuGet package version

Windows App SDK 1.7.3: 1.7.250606001

### Packaging type

Packaged (MSIX), Unpackaged

### Windows version

Windows 11 version 24H2 (26100, June 2025 Update)

### IDE

Visual Studio 2022

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file, test, or complete reproduction steps are identified. Start by reproducing the supplied Pivot and PivotItem.Resources example with Windows App SDK 1.7.3, then trace the Pivot header styling entry point. Done means the global header style displays consistently for every PivotItem and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.