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
Post a Comment