This project has moved and is read-only. For the latest updates, please go here.


Jan 3, 2008 at 2:37 AM
I'm putting the latest checkin into testing, and I noticed that by replacing this code with a Guard condition was not a good idea in NavBarItemCollectionUIAdapter and NavBarGroupCollectionUIAdapter

if (uiElement.NavBar != null) { // do remove() };
-> Guard.ArgumentNotNull(uiElement.NavBar, "NavBarGroup.NavBar");

I don't really know why, but when things are being disposed, the Remove() method of these classes gets called with an object whos NavBar property is null. Which can't be removed because it's not in the collection to be removed from.

Hence the need for this check. So I've put it back in.