ListBox does not update its layout when put inside a container with RenderTransform transition. #17670
-
I have a custom expander style that has animation on expansion of its content. The animation is done using I've recorded a video that demonstrates this behavior. I want to make sure whether it is indented or not and is there a way to fix it? Screen.Recording.2024-12-03.at.0.00.58.mp4The code for the expander style is here |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I've seen a similar issue. If I'm not mistaken the ListBox is using a virtualized stack panel by default. I was able to workaround the issue by switching to a normal stack panel. Would be interesting if this is also the case for you. |
Beta Was this translation helpful? Give feedback.
This is what I did in my ListBox:
Also, what I noticed myself: ItemsRepeater is a weird beast which does weird stuff. When I don't use a ListBox, I usually use an ItemsControl instead.