# Setting the Opening Event

Setting the **EventName** property will make **RadContextMenu** to listen for a particular event. When this event occurs, the **RadContextMenu** will open. For example, you may want to attach a context menu to a **Button** and the context menu to open whenever the **Button** gets clicked. This can be done by just setting the **EventName** property to the name of the event, in this case "**Click**".

> tip **RadContextMenu** can listen for any of the events of the control to which it is attached.

**Open RadContextMenu on a Button Click**

```XAML
<Button xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Width="100"
        Content="Click me!"
        VerticalAlignment="Top">
    <telerik:RadContextMenu.ContextMenu>
        <telerik:RadContextMenu EventName="Click">
            <telerik:RadMenuItem Header="Item" />
        </telerik:RadContextMenu>
    </telerik:RadContextMenu.ContextMenu>
</Button>
```

As you can see in this particular example, **RadContextMenu** is listening for the **Click** event of its host. So when you click the button, a context menu will appear.

> caption RadContextMenu opened on a click event

![WPF RadContextMenu Opened on Click Event](https://www.telerik.com/products/wpf/documentation/assets/c3af96456cc69c2432a99f548df686c1/radcontextmenu_features_eventname_01.png)

## See Also

* [Keyboard Support](https://www.telerik.com/products/wpf/documentation/controls/radcontextmenu/key-modifiers)

* [Menu Placement](https://www.telerik.com/products/wpf/documentation/controls/radcontextmenu/placement)

* [Opening and Closing Delays](https://www.telerik.com/products/wpf/documentation/controls/radcontextmenu/opening-and-closing-delays)
