protected override void Dispose(bool disposing)
{
if (_navigator.IsChildPanelBorrowed && (_navigator.ChildPanel != null))
{
// Remove the child panel from ourself and return it
// back to the navigator that it was borrowed from
Controls.Remove(_navigator.ChildPanel);
// Move the panel back to a minus position so it does not show
// until it is layed out again by the owning navigator instance
_navigator.ChildPanel.Location = new Point(-_navigator.ChildPanel.Width,
-_navigator.ChildPanel.Height);
_navigator.ReturnChildPanel();
}
base.Dispose(disposing);
}