Closed daltzctr closed 2 years ago
try to set MaxChildrenCount to 2 and DesiredMaxChildrenCount to 2
Looks like the issue still seems to be occurring with MaxChildrenCount
and DesiredMaxChildrenCount
both set to 2.
Sorry, I don't think I can fix it. Xamarin Forms does not have good performance especially on UWP
@AndreiMisiukevich Is there a way to let the GC know when a page is no longer rendered to GC? It seems that even with the above options, the page is constantly kept. I'm fine with sacrificing a bit of scrolling performance to let this page constructor rerun.
I don't understand why the perfornace decreases in case of window resizing. It doesn't create a new one each time you resize the window, right?
Also, you manually can remove the page from carouselview (e.g. when ItemDisappeared is raised). Just remove all CarouselView children except CurrentView
It seems like it's trying to rerender each of the Grid elements, even when it's not visible on the screen.
Yeah, I can give that a shot.
Problem Summary: Whenever I render a page that has a large amount of data (say 1000 rows of a
ListView
), the entireCarouselView
will slow the application down tremendously when doing any rendering work.Details: My
CarouselView
is binded to aList
ofContentView
"pages". Each "page" has it's own layout, commands, etc. Whenever I navigate to a page and press a button that renders ~200 items of aListView
and attempt to resize the application after this has been rendered, performance is greatly degraded. This performance persists when navigating between "pages" or "carousel items" and will only be resolved whenever the rootCarouselView
gets garbaged collected.Expected Behavior: CarouselView does not attempt to render non-visible items.
Attached config: