private void FirstCommentBtn_Click(object sender, RoutedEventArgs e) { if (CommentListView.Items.Count > 0) { CommentListView.ScrollIntoView(CommentListView.Items[0]); } }
private void LastCommentBtn_Click(object sender, RoutedEventArgs e) { var itemIndex = CommentListView.Items.Count - 1; if (itemIndex > 0) { CommentListView.ScrollIntoView(CommentListView.Items[itemIndex]); } }