/// <summary> /// Destruct the previously created view. /// </summary> public override void Destruct() { // Unhook from events Navigator.EnabledChanged -= OnEnabledChanged; // Update the child panel to have group appearance Navigator.ChildPanel.PanelBackStyle = Navigator.Group.GroupBackStyle; // Remove the old root from the canvas _drawPanel.Clear(); // Put the old root back again ViewManager.Root = _oldRoot; // Let base class perform common operations base.Destruct(); }