MonoMobile.Views.DataContextBinder.AddRow C# (CSharp) Method

AddRow() private method

private AddRow ( MonoMobile.Views.Section section, int row, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade ) : void
section MonoMobile.Views.Section
row int
item object
animation UITableViewRowAnimation
return void
		private void AddRow(Section section, int row, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade)
		{
			AddPropertyChangedHandler(item);

			section.DataContext.Insert(row, item);
					
			if (Controller == MonoMobileApplication.CurrentViewController)
			{
				var indexPaths = new NSIndexPath[] { NSIndexPath.FromRowSection(row, section.Index) };
				InvokeOnMainThread(()=> Controller.TableView.InsertRows(indexPaths, animation));
			}
		}