# Sandbox.UI.Popup.CloseWhenParentIsHidden

```csharp
bool CloseWhenParentIsHidden { get; set; }
```

If true, will close this popup when the [Sandbox.UI.Popup.PopupSource](/api/Sandbox.UI.Popup/PopupSource) is hidden.

Declared in [Sandbox.UI.Popup](/api/Sandbox.UI.Popup).
Assembly: `Sandbox.Engine`.
