void OnScrollComment(object sender, EventArgs args) { if (ViewModel.NewsComments.Count > 0) { NewsDetailsView.ScrollTo(ViewModel.NewsComments.First(), ScrollToPosition.Start, false); } }
private void OnResult(NewsComments result) { if (result != null) { ViewModel.AddComment(result); NewsDetailsView.ScrollTo(ViewModel.NewsComments.Last(), ScrollToPosition.Start, false); } }