xamarin.forms - Xamarin- How to make expand the listview programmatically? -


i using xamarin form code project, encounter issue is, when using listview , deploy android, android showed hamburger icon ios not exist. intend create icon in ios ios user know there listview. when find listview function, there no function expand or close listview. how expand listview programmatically?

<listview    x:name="campaignlist"    itemssource="{binding campaigns}"    itemtapped="onitemselected">   <listview.itemtemplate>      <datatemplate>        <textcell            text="{binding name}"            detail="{binding description}" textcolor="#000"           detailcolor="#999"/>       </datatemplate>    </listview.itemtemplate> </listview> 

assuming mean opening master page (which contains listview) of masterdetail page, exapnding listview (nb: if so, please edit question accordingly of use others in future)

public class mypage : masterdetailpage {    void togglemasterpage(bool openmenu)    {        ispresented = openpage;    } } 

you can invoke togglemasterpage method passing true open master page programmatically , false close .


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -