i working listview in xamarin.forms 1.4 , wondering if there way remove header (and footer, matter...) listview. functioning "out of box", have white space @ top of listview, if header property set text value, display value; however, when left default, or set string.empty, header still occupies space @ top.
any guidance appreciated!
*edit 1: *
just clarify, not using xaml, straight c#--here snippet using create listview:
var listview = new listview { //header = string.empty, rowheight = 160, itemssource = items, itemtemplate = new datatemplate(typeof(itemcell)) };
i left commented line in context/reference...
*edit 2: * here screenshot ios simulator demonstrating issue--notice top image scroll listview rolling under header:
update: solution
i marked @fredywenger's answer correct, wanted provide actual fix implemented take care of issue. removing/commenting out lines below, able rid of additional space @ tom , bottom of listview:
content = new stacklayout { //verticaloptions = layoutoptions.centerandexpand, //horizontaloptions = layoutoptions.center, children = { listview } };
i don't think "extra space" on top coming listview header (lv's don't should show header unless explicitly define one). think it's coming setting (mother-)control (e.g. stacklayout). search there...