# Sandbox.UI.PanelEventAttribute

Add an event listener to a [Sandbox.UI.Panel](/api/Sandbox.UI.Panel) event with the given name.

See `M:Sandbox.UI.Panel.CreateEvent(System.String,System.Object,System.Nullable{System.Single})`.

- Kind: attribute
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`

## Constructors

- [`PanelEventAttribute`](/api/Sandbox.UI.PanelEventAttribute/.ctor)

## Properties

- [`Name`](/api/Sandbox.UI.PanelEventAttribute/Name): Name of the event to listen to.
