Batching resource dictionary updates #18346
StefanKoell
started this conversation in
Ideas
Replies: 1 comment 11 replies
-
As a workaround, you could try copy/pasting Avalonia/src/Avalonia.Base/Controls/ResourceDictionary.cs Lines 33 to 45 in b815659 Probably should be part of the built-in API though. I'm not sure if there are any hardcoded bits that are specific to |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into an issue where programmatic updates of resources is causing UI lags and freezes. My understanding is that every update to the resource dictionary is 'instant' and notifies all elements that the resources have changed.
In an app, where UI related settings are handled using app level resources this can get quite expensive. In my case, I have multiple resources which are updated if UI options have changed. This means that each and every setting is notifying all elements that the resources have changed.
I'm wondering if the resource dictionary/theme dictionary can be optimized to allow batch changes and only notify once, when all the changes have been made.
Beta Was this translation helpful? Give feedback.
All reactions