Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styles like colors defined in a file does not work with WinAppSDK #16740

Closed
ArchieCoder opened this issue May 15, 2024 · 3 comments
Closed

Styles like colors defined in a file does not work with WinAppSDK #16740

ArchieCoder opened this issue May 15, 2024 · 3 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@ArchieCoder
Copy link
Contributor

Current behavior

The exception is thrown:

Cannot find a Resource with the Name/Key ActionBackgroundBrush [Line: 21 Position: 21]

Expected behavior

Resource should be found

How to reproduce it (as minimally and precisely as possible)

Run the app using WinAppSDK target UnoStyle.zip

It works with Desktop / Skia

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Windows (WinAppSDK)

IDE

Visual Studio 2022

IDE version

Latest VS Code

Relevant plugins

No response

Anything else we need to know?

No response

@ArchieCoder ArchieCoder added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels May 15, 2024
@ArchieCoder
Copy link
Contributor Author

@kazo0 Pointed me to this bug from Microsoft. Adding a dummy resource fixes the bug.

https://stackoverflow.com/questions/44266369/xaml-resourcedictionary-not-loading-correctly-with-a-single-keyset

@agneszitte
Copy link
Contributor

@kazo0 Pointed me to this bug from Microsoft. Adding a dummy resource fixes the bug.

stackoverflow.com/questions/44266369/xaml-resourcedictionary-not-loading-correctly-with-a-single-keyset

@jeromelaban, @kazo0 not sure if Microsoft has a proper issue opened for this lately.
All the previous links mentioned here and here are not working anymore.

@ArchieCoder
Copy link
Contributor Author

Maybe it is worth to ping them in the WinDev discord server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants