【发布时间】:2014-10-09 09:06:21
【问题描述】:
我已成功从 URL 获取数据并将其分配给我的客户字典,并且我可以在输出中写入每个客户对象。但是,由于我是这个平台的新手,我无法在 TableView Cell 上填充数据。我已附上我的代码。
private IEnumerable <IDictionary<string,object>> Customers;
public MyDataServices ()
{
InitializeComponent ();
InitializeDataService ();
GetDataFromOdataService ();
foreach (var customers in Customers){
System.Diagnostics.Debug.WriteLine((string)customers["ContactName"]);
// populate Data on TableView
}
Padding = new Thickness (10, 20, 10, 10);
Content = new StackLayout () {
Children = { tableView }
};
}
【问题讨论】: