Skip to content

InfiniteScroll, binding FlowTotalRecords doesn't work #301

@mleone20

Description

@mleone20

Binding the FlowTotalRecords doesn't trigger the first FlowLoadingCommand.

This works:

        <flv:FlowListView x:Name="flowListView" 
                    FlowColumnCount="2" 
                    SeparatorVisibility="None" HasUnevenRows="true"
                    FlowColumnMinWidth="160"
                    FlowItemsSource="{Binding Items}" 
                    FlowIsLoadingInfinite="{Binding IsBusy}"
                    FlowTotalRecords="50"
                    FlowLoadingCommand="{Binding LoadingCommand}" 
                    FlowIsLoadingInfiniteEnabled="true">

and this not:

        <flv:FlowListView x:Name="flowListView" 
                    FlowColumnCount="2" 
                    SeparatorVisibility="None" HasUnevenRows="true"
                    FlowColumnMinWidth="160"
                    FlowItemsSource="{Binding Items}" 
                    FlowIsLoadingInfinite="{Binding IsBusy}"
                    FlowTotalRecords="{Binding TotalRecords}"
                    FlowLoadingCommand="{Binding LoadingCommand}" 
                    FlowIsLoadingInfiniteEnabled="true">

The binding context:

        public int TotalRecords { get => totalRecords; set => SetProperty<int>(ref totalRecords, value); }
        private int totalRecords = 50;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions