private void Duan_Tucao_Click(object sender, RoutedEventArgs e) { var b = sender as Button; var duan = b.DataContext as Duan; CommentControl.Update(duan.DuanID); DuanSplitView.IsPaneOpen = true; CommentControl.SetFocus(); }
private void DuanViewComment_Click(object sender, RoutedEventArgs e) { var b = sender as Button; var bp = b.DataContext as BoringPic; CommentControl.Update(bp.PicID); DuanSplitView.IsPaneOpen = true; CommentControl.SetFocus(); }