public virtual void Remove(UiView view) { _children.Remove(view); view.ViewRemoved(); OnChildrenModified(); }
void IItemsConsumer.Removed(object item) { lock (_recalcLock) { _recalculate = true; } UiView view = null; lock (_childrenLock) { if (_bindingToElement.TryGetValue(item, out view)) { _bindingToElement.Remove(item); } } if (view != null) { UiTask.BeginInvoke(() => { view.ViewRemoved(); _children.Remove(view); }); } }