Wednesday, 15 January 2014

c# - Xamarin.Forms - ListView entirely in XAML -



c# - Xamarin.Forms - ListView entirely in XAML -

we have few screens should uitableviews on ios have static number of rows , different types of cells.

is there way define in xaml xamarin.forms, , not have setup binding itemssource? if want define 2 entrycells , textcell?

my first effort example, see equivalent of cell.tostring() in each row:

<listview> <listview.itemssource> <x:array type="{x:type cell}"> <entrycell text="{binding phone}" /> <entrycell text="{binding code}" /> <textcell text="login" command="{binding login}"/> </x:array> </listview.itemssource> </listview>

considering want static cells different templates / layout each cell, have tried xamarin.forms tableview? http://iosapi.xamarin.com/?link=t%3axamarin.forms.tableview

<tableview> <tableview.root> <tablesection title="login"> <entrycell text="{binding phone}" /> <entrycell text="{binding code}" /> <textcell text="login" command="{binding login}"/> </tablesection> </tableview.root> </tableview>

admittedly seems give non customisable section header @ time of writing (but improve).

c# monotouch xamarin monodroid xamarin.forms

No comments:

Post a Comment