private bool test_thumb_feedback(TouchEventArgs e)
{
TouchPoint pt = e.GetTouchPoint(this._list as IInputElement);
hitResultsList.Clear();
//HitTestResult hr = VisualTreeHelper.HitTest(this._list, new Point(pt.Position.X, pt.Position.Y));
VisualTreeHelper.HitTest(this._list, null, new HitTestResultCallback(HitTestResult_Tap_v2), new PointHitTestParameters(new Point(pt.Position.X, pt.Position.Y)));
try
{
Image i = (Image)hitResultsList[0];
if (i.Name == "avatar")
{
item_generic_v2 i2 =null;
try { i2 = (item_generic_v2)i.Tag; }
catch (Exception) { return false; }
if (populator.thumbs_up_handler != null)
{
populator.thumbs_up_handler(i2, e);
return true;
}
}
//if (i.Name == "img_dislike")
//{
// item_generic i2 = (item_generic)i.Tag;
// if (populator.thumbs_down_handler != null)
// populator.thumbs_down_handler(i2, e);
// return true;
//}
return false;
}
catch (Exception e2) { return false; }
}