System.Windows.Controls.ItemsControl.InvokeItemsChanged C# (CSharp) Method

InvokeItemsChanged() private method

private InvokeItemsChanged ( object o, NotifyCollectionChangedEventArgs e ) : void
o object
e NotifyCollectionChangedEventArgs
return void
		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);
		}