# ContextMenu

You can display a context menu when the user interacts with the notify icon with the help of the **TrayContextMenu** property.

## TrayContextMenu

The **TrayContextMenu** property expects a value of type [RadContextMenu](https://www.telerik.com/products/wpf/documentation/controls/radcontextmenu/getting-started). **Example 1** demonstrates how it can be used.

**Example 1: Setting TrayContextMenu**

```XAML

<telerik:RadNotifyIcon
x:Name="icon">
    <telerik:RadNotifyIcon.TrayContextMenu>
        <telerik:RadContextMenu IconColumnWidth="0">
            <telerik:RadMenuItem Header="Item 1" />
            <telerik:RadMenuItem Header="Item 2" />

            <telerik:RadMenuItem Header="Item 3" />
        </telerik:RadContextMenu>
    </telerik:RadNotifyIcon.TrayContextMenu>
</telerik:RadNotifyIcon>
```

> caption RadContextMenu displayed over the icon

![RadContextMenu displayed over the icon](https://www.telerik.com/products/wpf/documentation/assets/b3a9754f697ea3fc4d9525584dc6f194/radnotifyicon_contextmenu.png)

## ContextMenuActivationMouseEvent

The **ContextMenuActivationMouseEvent** property determines when the context menu will be shown. The default value is **RightClick**.

**Example 2: Setting ContextMenuActivationMouseEvent**

```XAML

<telerik:RadNotifyIcon ContextMenuActivationMouseEvent="RightDoubleClick" />
```

## See Also

* [Events](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/events)
* [Tooltip](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/tooltip)
* [Popup](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/popup)
* [Balloon Notifications](https://www.telerik.com/products/wpf/documentation/controls/radnotifyicon/features/balloon-notifications)
