lepoco / lepoco/wpfui

Exception thrown when i change button appearance to Primary

Open
#795 5 comments 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

Exception: Cannot find resource named 'SystemAccentColorPrimary' thrown when i change button appearance to Primary.

To Reproduce

Create a new WPF .net 7 project, set up wpfui, add a <ui:Button Appearance="Primary"/> to the main grid, run your project.

Expected behavior

I expected that my button will actually change it's appearance to primary.

Screenshots

exc

OS version

Windows 11 22H2

.NET version

.NET 7.0

WPF-UI NuGet version

3.0.0 preview 8

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 by reproducing the exception in a new WPF .NET 7 project with a <ui:Button Appearance="Primary"/> and inspect the resource lookup for SystemAccentColorPrimary. Done means the project runs without the exception and the button displays the Primary appearance.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.