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

RemoveRow() private method

private RemoveRow ( MonoMobile.Views.Section section, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade ) : void
section MonoMobile.Views.Section
item object
animation UITableViewRowAnimation
return void
		private void RemoveRow(Section section, object item, UITableViewRowAnimation animation = UITableViewRowAnimation.Fade)
		{
			RemovePropertyChangedHandler(item);

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