VisualContainer Container = listView.GetVisualContainer();
private void ListView_ItemHolding(object sender, ItemHoldingEventArgs e)
{
//Represents the underlying data model object.
var datamodel = e.ItemData as BookInfo;
var item = Container.Children.FirstOrDefault(x => x.BindingContext == datamodel) as ListViewItem;
if (item != null)
{
//Represents the child element of listview item.
var templatecontent = item.Content;
}
} |