-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ThemeManager's OnThemeChanged work-around conflicting with other WPF internals. #923
Comments
I also noticed that without these internal calls. The theme/accent change is almost instant. Where as with OnThemeChanged enabled there is a small delay / freeze of the application when changing the theme. |
Hm, this may also be the reason why |
with the work-around disabled, I now see old accent colors. obviously. I hope someone can come up with a solution. |
Perhaps @punker76 can chime in on this. |
I did some trial and error on this. Disabling line 285, fixes my issue with the ListBox (and probably also with mentioned MediaElement), while still refreshing the accent colors:
This solved everything for me. Please verify. |
I found a conflict with ThemeManager and SharedSizeGroup (or rendering in general).
See this SO question for more details: http://stackoverflow.com/questions/21061630/wpf-listbox-selecteditem-changing-twice-bug/21061804?noredirect=1#comment31671940_21061804
It seems this work-around is conflicting with other rendering procedures in WPF:
I disabled this method in a custom build and my issue (on SO) goes away.
Obviously disabling this work-around is not a real fix.
Hopefully anyone with more experience of WPF internals can take a look.
The text was updated successfully, but these errors were encountered: