-
I've been away from Avalonia for a while and tried running 11.1.3 (on Windows) but am getting lots of problems from style and resource loading. Simplest example is setting a button theme inline like this results in an empty style (no bg or hover behavior):
Also I get weird behavior all over the place. Animations, images and colors not loading (but some do?) but no binding errors besides a string to FontFamily conversion exception which makes me think something has changed with global style loading. Everything works fine in 11.0.11 (went directly to 11.1.3). Has there been changes to how styles are being loaded? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Any third party controls? |
Beta Was this translation helpful? Give feedback.
Seems this exception was the root cause:
Unable to cast object of type 'System.String' to type 'Avalonia.Media.FontFamily
Get them anytime a window is closed which never happened before (<11.1.2) but doing this in a
Closing
handler prevents it:window.FontFamily = FontFamily.Default;
Not sure what's going on under the hood but maybe a custom font bug during window disposal not sure though.