App.xaml setting theme "Dark" inoperative.
Open
Nobody has claimed this yet.
bug
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
App.xaml
<Application.Resources>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Dark" />
<ui:ControlsDictionary />
</ResourceDictionary.MergedDictionaries>
</Application.Resources>
To Reproduce
The constructor is called multiple times, causing the theme to reset.
Expected behavior
how to avoid?
Screenshots
No response
OS version
win11
.NET version
.net core 6
WPF-UI NuGet version
3.0.0
Additional context
No response
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.
Research direction
Start with App.xaml and the constructor mentioned in the report, then reproduce the behavior using WPF-UI 3.0.0 on .NET 6. Trace the repeated constructor calls and the Theme="Dark" resource setup; done means the Dark theme remains applied without being reset.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100