# Events

Here are the events exposed by the RadNotifyIcon control:

## Tooltip

* **PreviewTooltipOpened**: Occurs when a [styled tooltip](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/tooltip#tooltipcontent-and-tooltipcontenttemplate) is about to be opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.

  * A **CancelEventArgs** object. It allows for preventing the opening by setting the **Cancel** property.

* **TooltipOpened**: Occurs when a [styled tooltip](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/tooltip#tooltipcontent-and-tooltipcontenttemplate) is opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

## Popup

* **PopupOpening**: Occurs when a [popup](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/popup) is about to be opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **NotifyIconPopupOpeningEventArgs** object.

* **PopupOpened**: Occurs when a [popup](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/popup) is opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

## ContextMenu

* **TrayContextMenuOpening**: Occurs when a [context menu](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/contextmenu) is about to be opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **CancelEventArgs** object. It allows for preventing the opening by setting the **Cancel** property.

* **TrayContextMenuOpened**: Occurs when a [context menu](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/contextmenu) is opened. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

## Balloon

* **BalloonTipShown**: Occurs when a [balloon notification](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/balloon-notifications) is shown. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

* **BalloonTipClicked**: Occurs when a [balloon notification](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/balloon-notifications) is clicked. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

* **BalloonTipClosed**: Occurs when a [balloon notification](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/balloon-notifications) is closed. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * An **EventArgs** object.

## Tray Icon Events

* **TrayIconMouseClick**: Occurs when the user clicks on the notify icon. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **MouseButtonEventArgs** object.

* **TrayIconMouseDoubleClick**: Occurs when the user double clicks on the notify icon. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **MouseButtonEventArgs** object.

* **TrayIconMouseMove**: Occurs when the user moves the mouse over the notify icon. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **MouseButtonEventArgs** object.

* **TrayIconMouseDown**: Occurs when the user presses a mouse button over the notify icon. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **MouseButtonEventArgs** object.

* **TrayIconMouseUp**: Occurs when the user releases a mouse button over the notify icon. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **MouseButtonEventArgs** object.

* **Selected**: Occurs when the user selects a RadNotifyIcon in the Windows notification area. The event handler receives two arguments:

  * The sender argument contains the **RadNotifyIcon**. This argument is of type object, but can be cast to the **RadNotifyIcon** type.
  * A **NotifyIconSelectedEventArgs** object. It exposes the **IsKeyboardSelection** property, which indicates whether the RadNotifyIcon was selected with the keyboard. If false, the selection was done with the mouse.

## See Also

* \[Getting Started]
