OnOwnerItemsItemsChanged() 개인적인 메소드

private OnOwnerItemsItemsChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
sender object
e NotifyCollectionChangedEventArgs
리턴 void
예제 #1
0
        void InvokeItemsChanged(object o, NotifyCollectionChangedEventArgs e)
        {
            switch (e.Action)
            {
            case NotifyCollectionChangedAction.Add:
                SetLogicalParent(native, e.NewItems);
                break;

            case NotifyCollectionChangedAction.Remove:
                SetLogicalParent(IntPtr.Zero, e.OldItems);
                break;

            case NotifyCollectionChangedAction.Replace:
                SetLogicalParent(IntPtr.Zero, e.OldItems);
                SetLogicalParent(native, e.NewItems);
                break;
            }

            ItemContainerGenerator.OnOwnerItemsItemsChanged(o, e);
            if (!itemsIsDataBound)
            {
                OnItemsChanged(e);
            }
        }