private void Item_OnTap(object sender, GestureEventArgs e) { InfoListItem infoListItem = ((FrameworkElement)sender).DataContext as InfoListItem; if (infoListItem == null || infoListItem.TapAction == null) { return; } infoListItem.TapAction(); }
private void Item_OnTap(object sender, System.Windows.Input.GestureEventArgs e) { InfoListItem dataContext = ((FrameworkElement)sender).DataContext as InfoListItem; if (dataContext == null || dataContext.TapAction == null) { return; } dataContext.TapAction(); }