private void Image_Tapped(object sender, TappedRoutedEventArgs e) { e.Handled = true; PictureClick?.Invoke(this, new WeiboPictureClickEventArgs((sender as Image).DataContext as PictureModel) { DataContext = DataContext as MessageModel }); }
private void WeiboImageList_PictureClick(object sender, WeiboPictureClickEventArgs e) { e.DataContext = (sender as WeiboImageList).DataContext as MessageModel; PictureClick?.Invoke(sender, e); }