# Sandbox.UI.Panel.HasFocus

```csharp
bool HasFocus { get; set; }
```

Whether this panel has the `:focus` pseudo class active.

Declared in [Sandbox.UI.Panel](/api/Sandbox.UI.Panel).
Assembly: `Sandbox.Engine`.
