Open
Description
[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.
- ID: 9cd8bc4b-e32e-08d4-0fc0-8566f94859e1
- Version Independent ID: 4fab2e81-3001-d296-5db4-7cb39038e18f
- Content: XAML theme resources - Windows apps
- Content Source: hub/apps/design/style/xaml-theme-resources.md
- Product: reunion
- Technology: design
- GitHub Login: @jwmsft
- Microsoft Alias: jimwalk