Exemple #1
0
 private void AddMessageToTableView(NotifyCollectionChangedEventArgs eventArgs)
 {
     if (eventArgs.Action == NotifyCollectionChangedAction.Reset)
     {
         MessageList.ReloadData();
     }
     else
     {
         MessageList.BeginUpdates();
         MessageList.InsertRows(
             new NSIndexPath[] { NSIndexPath.FromRowSection(ViewModel.MessageList.Count - 1, 0) },
             UITableViewRowAnimation.Bottom);
         MessageList.EndUpdates();
     }
 }