You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TextBlock is not rendered correctly when changing its DataContext in panel ArrangeOverride.
To Reproduce
Steps to reproduce the behavior:
Unfortunately this bug didn't occur when I extracted the control to a separate project, it might be related to the hierarchy of the components in the real app (Dock control involved etc), but the app is open source, so you can reproduce it:
In the left tool panel, switch to Tables panel and select "Avalonia 11 bug Demo" from the combo box
Shrink the panel so that the texts start to collapse
Start scrolling. Note: it rarely happens when scrolling down, mostly when scrolling up.
Expected behavior
Text shouldn't flicker.
Info about the code:
The offending view is in file Avalonia11BugDemoView. The control that runs the tree is my custom VirtualizedTreeView, which virtualizes VirtualizedTreeViewItem by iterating through ItemsSource in ArrangeOverride and arranges only visible items and sets their DataContext. I don't think it is illegal?
Screenshots
11.1.999-cibuild0045529-beta:
Screen.Recording.2024-03-04.at.12.04.31.mov
I feel like this PR changed the flickering a bit #14806 But it still occurs
11.1.999-cibuild0045561-beta:
Screen.Recording.2024-03-04.at.12.01.07.mov
Note: when I expanded the panel so that the texts no longer collapse, there is no flickering
BAndysc
changed the title
Text flickers in TextBlock with TextTrimming enabled when scrolling
Text flickers in TextBlock with TextTrimming enabled when changing DataContext and dynamically rearranging
Mar 5, 2024
Describe the bug
TextBlock is not rendered correctly when changing its DataContext in panel ArrangeOverride.
To Reproduce
Steps to reproduce the behavior:
Unfortunately this bug didn't occur when I extracted the control to a separate project, it might be related to the hierarchy of the components in the real app (Dock control involved etc), but the app is open source, so you can reproduce it:
avalonia11-bug
git submodule update --init --recursive
Expected behavior
Text shouldn't flicker.
Info about the code:
The offending view is in file
Avalonia11BugDemoView
. The control that runs the tree is my customVirtualizedTreeView
, which virtualizesVirtualizedTreeViewItem
by iterating through ItemsSource inArrangeOverride
and arranges only visible items and sets their DataContext. I don't think it is illegal?Screenshots
11.1.999-cibuild0045529-beta:
Screen.Recording.2024-03-04.at.12.04.31.mov
I feel like this PR changed the flickering a bit #14806 But it still occurs
11.1.999-cibuild0045561-beta:
Screen.Recording.2024-03-04.at.12.01.07.mov
Note: when I expanded the panel so that the texts no longer collapse, there is no flickering
Environment
Additional context
Note: when I set TextTrimming to None, there is no flickering.
The text was updated successfully, but these errors were encountered: