# Sandbox.UI.SwitchControl.OnValueChanged

```csharp
System.Action<bool> OnValueChanged { get; set; }
```

Called when the switch is toggled.

Declared in [Sandbox.UI.SwitchControl](/api/Sandbox.UI.SwitchControl).
Assembly: `Sandbox.Engine`.
