Skip to content

BindableLayout performance could be better #23135

@albyrock87

Description

@albyrock87

Description

I have a custom calendar view which can switch between month-view and week-view.
Days are rendered through CommunityToolkit UniformLayout by leveraging BindableLayout.
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions