public void RemoveChild(PackagePart child) { if (child == null) { throw new ArgumentNullException("child"); } var removed = Children.Remove(child); if (removed) { child.Dispose(); PackageViewModel.NotifyChanges(); } }