private void Grid_Tapped(object sender, TappedRoutedEventArgs e) { var context = (e.OriginalSource as FrameworkElement).DataContext; if (context is UserModel) { e.Handled = true; ActionModel.UserClick(this, new WeiboUserClickEventArgs((context as UserModel).ID)); } else if (context is MessageModel) { e.Handled = true; ActionModel.ItemClick(this, new WeiboItemClickEventArgs(context as MessageModel)); } }