我有一个客户列表,我用它来创建这样的元素:
Foreach(Customer c in Customers)
{
//Make the StyledStringElement
//Set the Tapped to action a touch
element.Tapped += () => { Push (new SomeController (c.ClientId)); };
}
问题是当元素被点击时,它会将最后一个客户发送到 SomeController ()。
如何使用可以识别客户的信息设置 Tapped Delegate ?