Skip to content

Theme resoruce not working for Win UI 3 as explained in the XAML Theme Resources documentation #4755

Open
@gmgallo

Description

@gmgallo

[Enter feedback here]
The last (good) example shown in this page is not working in Win UI 3 when inserting it as is in the Page.Resources section.
At edition time VS Intelisense fails to locate the static resource {myBrush in that example}. If hand typed the app compiles. but throws an exception at resource load time during startup.

The second thing is that the compiler throws an error message saying that the resource dictionary must have a Key. Adding a key pleases it, but there is no way in the XAML editor to invoke the dictionary through that key. What would be the syntax?
A Win UI 3 example would be much appreciated.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions