Changing application theme breaks NavigationView
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the issue on Windows 11 with .NET 9 using ApplicationThemeManager.Apply() and ApplicationThemeManager.ApplySystemTheme(), then trace the theme-change path affecting NavigationView and the window background. Done means both PaneDisplayMode variants remain visible and correctly sized, and the page background refreshes after every theme change.
Written by the indexing model from the issue text.
Description
Describe the bug
Changing the application theme with ApplicationThemeManager.Apply() or ApplicationThemeManager.ApplySystemTheme() breaks several UI components:
NavigationViewPane disappears with propertyPaneDisplayMode="Left", and the pane widens.- The
NavigationViewpage disappears with propertyPaneDisplayMode="LeftFluent". - Page background does not refresh after first theme change, subsequent theme changes leave the background unupdated.
To Reproduce
- Change the application theme with
ApplicationThemeManager.Apply()orApplicationThemeManager.ApplySystemTheme() - Observe issues with NavigationView element and window background
Expected behavior
The NavigationView element should behave as expected after theme changing
Screenshots
Before first theme change with PaneDisplayMode="Left":
After first theme change:
OS version
Windows 11
.NET version
.NET 9.0
WPF-UI NuGet version
Observed in v4.2.0, v4.1.0 and v4.0.3
Additional context
I'm looking to update my app (https://github.com/unchihugo/FluentFlyout) to use NavigationView structured settings, but this is issue holding me back from migrating.
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lepoco/wpfui
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100