Skip to content

Why ResourceDictionary.ThemeDictionaries keys are not being found? #18666

Answered by maxkatz6
fitdev asked this question in Q&A
Discussion options

You must be logged in to vote

Statically, there is no Dark or Light theme during app initialization and styles processing. If your theme dictionary had "Default" key - it would be used, though.

But better practice is to use DynamicResource for anything like this, what can be changed in runtime.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fitdev
Comment options

Answer selected by fitdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants