public override void Exit() { _shelf._exitRequestedByComponent = true; // close the shelf _shelf.Close(UserInteraction.Allowed, CloseReason.Program); }