-
Notifications
You must be signed in to change notification settings - Fork 60
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
Runtime theme changing problems on Avalonia 11 #200
Comments
I thought UseDeferredRendering wont affect this. |
Wait if |
I've already researched our theme applying - it's working fine and as intended. I may have missed something, of course, but I'm sure that's not where the problem is.
I don't really know what you mean. The change events themselves are generated normally |
Interesting fact: if we replace
|
Seems like, if we reset theme at runtime, all controls start working fine. Step by step:
|
Seems like i figured out it in more details |
Fixed with Avalonia 11 preview 5. |
If you install
3.0.0-preview*
version and setup theme changing at runtime you can get troubles with, for example, TextBox colors (and left side bar in our demo):This is known error and i don't know how to fix it. I think what that is something at Avalonia's side.
I figured out some workarounds:
UseCompositor = false
andUseDeferredRendering = false
at yourBuildAvaloniaApp
method:Make sure what you creating proper PLATFORMOptions, where PLATFORM is your platform actually.
InvalidateVisual
at root element of scene (or at elements what incorrectly painted). After that you should trigger actual repainting of everything - for example, change window sizeAlso, i need your help to find out exactly what causes this behavior, create a minimal representative example, and help the Avalonia developers fix it (or fix it on our end, but I have no idea). All ideas, PR, examples and other warmly welcomed.
The text was updated successfully, but these errors were encountered: