我们有一些屏幕应该有效地UITableViews在 iOS 上具有静态行数和不同类型的单元格。
有没有办法用 Xamarin.Forms 在 XAML 中定义它,而不必设置绑定到ItemsSource?就像我只想定义两个EntryCells然后一个TextCell?
我的第一次尝试是这个例子,但我只看到Cell.ToString()每一行中的等价物:
<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>