Nested ListView not scrollable

VagelisVagelis GRMember ✭✭

Hi to all
I have a listview which is inside a listview, but I cannot scroll. Is this possible? What am I missing?
My Xaml:

<br /> <ListView><br /> &lt;ListView.ItemTemplate><br /> <DataTemplate><br /> <ViewCell><br /> <StackLayout><br /> <Grid><br /> <Label /><br /> </Grid></p> <pre><code> <ListView> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <Label /> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> </ViewCell> </DataTemplate>

</ListView.ItemTemplate>

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    never use one listview inside another

  • NMackayNMackay GBInsider, University mod

    @Vagelis said:
    Hi to all
    I have a listview which is inside a listview, but I cannot scroll. Is this possible? What am I missing?
    My Xaml:

    <br /> <ListView><br /> &lt;ListView.ItemTemplate><br /> <DataTemplate><br /> <ViewCell><br /> <StackLayout><br /> <Grid><br /> <Label /><br /> </Grid></p> <pre><code> <ListView> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <Label /> </StackLayout> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> </ViewCell>


    </ListView.ItemTemplate>

    Consider listview grouping.

    https://stackoverflow.com/questions/47483402/nested-listview-is-not-working-in-xamarin-forms?rq=1

Sign In or Register to comment.