lepoco / lepoco/wpfui

App.xaml setting theme "Dark" inoperative.

Open
#935 1 comment 0 reactions 0 assignees View on GitHub

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

image
1707273147270
image
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.