TextBlock Text is not rendering correctly #15264
Unanswered
viktorspacil
asked this question in
Q&A
Replies: 1 comment 8 replies
-
|
A controlTemplate is to be used in Styles or ControlThemes only. Can you file a complete minimum sample please? Note: there's a known issue with dynamic resources in PopUps after switching theme but I doubt it is what we see here. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
does anybody encountered following odd behavior (Apple Silicon M3, MacOS Sonoma 14.4.1, Avalonia UI 11.0.10, FluentIcons 1.1.224, FluentAvaloniaUI 2.0.5) when Text of TextBlock is not rendered correctly (wrong size, foreground or does not shown at all)? When I look onto TextBlocks using Avalonia DevTools then I can see, that properties are set correctly. I am using DynamicResource to set the Text property (to be able to dynamically change the language during application lifetime). Item template looks basically like this:
When I do any change on the page (like a user change of the language causing property data change or move to another page and back) then the rendering is fixed. This odd behavior appears randomly when a user is browsing through application pages. It is also interesting that only some of the TextBlocks are affected. Do you have any advice or hint what to check/debug? Thank you.
Wrong:

Correct:

Beta Was this translation helpful? Give feedback.
All reactions