Implementation of virtualizing layout

ddjddj USMember

Hi,

Any suggestions how to achieve layout virtualization which is already implemented in Xamarin Forms ListView?

Answers

  • AndrewMobileAndrewMobile USMember ✭✭✭✭

    @ddj can you give more details on what you want to do?
    what kind of control do you want to virtualize?

  • ddjddj USMember

    I want to virtualize WrapLayout which I've found on XLabs repo.
    https://github.com/XLabs/Xamarin-Forms-Labs/blob/master/src/Forms/XLabs.Forms/Controls/WrapLayout.cs

    Layout should be able to load about 500 frames (label + thumbnail).
    Width and height of frames should be variable using a slider for instance.

  • AndrewMobileAndrewMobile USMember ✭✭✭✭

    @ddj you need to create your own UI virtualization mechanism, there isn't one right now in Xamarin Forms

  • ddjddj USMember

    I've already realized that. Anyway, do you have any idea how to implement that mechanism?
    I thought that ListView provides virtualization, am I wrong?

  • AndrewMobileAndrewMobile USMember ✭✭✭✭
    edited May 2015

    @ddj from the top of my head, you need to modify that WrapLayout to support virtual children, which is different the Children collection which are the actual child views

  • AndrewMobileAndrewMobile USMember ✭✭✭✭

    It's not easy, you must take into account scrolling too.

Sign In or Register to comment.