Esempio n. 1
0
        public virtual void Remove(UiView view)
        {
            _children.Remove(view);

            view.ViewRemoved();
            OnChildrenModified();
        }
Esempio n. 2
0
        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);
                });
            }
        }