1 回答

TA貢獻1877條經驗 獲得超6個贊
GitHub 存儲庫中有一個示例應用程序,可以準確地演示您想要的內容
var contacts = await Plugin.ContactService.CrossContactService.Current.GetContactListAsync();
lstContacts.ItemsSource = contacts;
<ListView
x:Name="lstContacts"
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<StackLayout>
<Label Text="{Binding Name}"/>
<Label Text="{Binding Email}"/>
<Label Text="{Binding Number}"/>
</StackLayout>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
- 1 回答
- 0 關注
- 120 瀏覽
添加回答
舉報