Esri / Esri/calcite-dotnet-toolkit

[WinUI] Implicit style overrides are not applied

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
24
Forks
5
PR merge metrics
No merged PRs in 30d

Description

It appears that implicit styles defined within `XamlControlsResources` are not applied properly, which means that the WinUI toolkit does not actually apply any implicit styles. This is reproducible outside of WinUITests and the samples app (see the zipfile below).

[WinUiStylesTest.zip](https://github.com/user-attachments/files/22893098/WinUiStylesTest.zip)

### Other Solutions Attempted
#### Moving `CalciteResources` outside of `XamlControlsResources`
```


```
This does not work properly as styles that have not been overridden (which is most of them) do not honor theme colors.

Contributor guide

Open the contributing guide

Research direction

Start with the attached WinUiStylesTest.zip reproduction, then compare its resource setup with WinUITests and the samples app. Investigate the XamlControlsResources and CalciteResources merge order and verify that implicit styles apply while non-overridden styles still honor theme colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.