BindableLayout performance could be better #23135
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
delighter-sc
fixed-in-8.0.90
fixed-in-9.0.0-rc.2.24503.2
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
platform/android 🤖
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
I have a custom calendar view which can switch between month-view and week-view.
Days are rendered through
CommunityToolkit
UniformLayout
by leveragingBindableLayout
.Now, when you switch from one month to another the
BindableLayout
basically removes all the children and recreates them.The performance here is definitely poor and could be improved a lot by reusing already generated views when template can be reused and simply change the
BindingContext
.Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS, Other (Tizen, Linux, etc. not supported by Microsoft directly)
Affected platform versions
No response
Did you find any workaround?
No workaround possible besides creating my own
BindableLayout
version.Relevant log output
No response
The text was updated successfully, but these errors were encountered: