unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.48k stars 690 forks source link

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

Closed ArchieCoder closed 2 weeks ago

ArchieCoder commented 2 weeks ago

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 commented 2 weeks ago

@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 commented 2 weeks ago

@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 commented 2 weeks ago

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