Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

How to make listview inside a scrolllayout scrollable

$
0
0

I have a content page with stacklayout with search filters and a listview with custom viewcell item templated. The problem if there is to many data on the listview than the height of the parent i cant scroll on the listview and it hides some other items..

`Here is my example code

//taskforms stack has filter, optionStack has some button and listStack has my listview

timeList= new ListView
{
ItemTemplate = new DataTemplate(typeof(TimeEntriesViewCell)),
RowHeight = 220,
IsPullToRefreshEnabled = true,
SeparatorColor = Global.NetJetYellow,
VerticalOptions = LayoutOptions.FillAndExpand,
HorizontalOptions = LayoutOptions.CenterAndExpand
});
listStack=new StackLayout{ VerticalOptions = LayoutOptions.FillAndExpand}
listStack.Children.Add(timeList);
var contentStack = new StackLayout
{

            Children = { Pagetitle,OptionStack ,taskformStack, listStack},
                VerticalOptions=LayoutOptions.FillAndExpand,
            HorizontalOptions=LayoutOptions.FillAndExpand
        };

`


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>