# RadRadialMenu as a Context Menu

The **RadRadialMenu** can be used as a context menu for another **FrameworkElement**. This can be done by using attached properties defined in the **RadRadialContextMenu** class.

* **Menu** (RadRadialMenu): Specifies the **RadRadialMenu** instance that will be attached to the target element.
* **Behavior** (RadialMenuTriggerBehavior): Specifies the behavior class that will take care of the attachment/detachment of the menu to the target element and the positioning of the menu.

## Default Behavior

You can use the default **RadialMenuTriggerBehavior** class and with the **AttachTriggers** property you have to specify the event that will trigger attachment of **RadRadialMenu** to the target element. Here are listed all available values:

* **None**: The menu cannot be opened with an automatic trigger.
* **PointerPressed**: The menu is opened when pointer press event occurs on the target element.
* **PointerOver**: The menu is opened when pointer over event occurs on the target element.
* **Focused**: The menu is opened when the target element gets focus.
* **PressedOrFocused**: The menu is opened when the target element gets focus or press action.

Here is an example demonstrating how to define a behavior that will attach the menu when the target element is focused.

#### **Example 1: Attached Behavior**

```XAML
<TextBox x:Name="text" Margin="20 45" Width="136" HorizontalAlignment="Left" VerticalAlignment="Center">
	<navigation:RadRadialContextMenu.Behavior>
		<navigation:RadialMenuTriggerBehavior AttachTriggers="Focused" />
	</navigation:RadRadialContextMenu.Behavior>
	<navigation:RadRadialContextMenu.Menu>
		<navigation:RadRadialMenu Margin="10"  >
			<navigation:RadialMenuItem Header="item 1" />
			<navigation:RadialMenuItem Header="item 2" />
			<navigation:RadialMenuItem Header="item 3" />
		</navigation:RadRadialMenu>
	</navigation:RadRadialContextMenu.Menu>
</TextBox>
```

![WinUI RadRadialMenu RadRadialMenu As a ContextMenu](https://www.telerik.com/winui/documentation/assets/7fdd3e9b3743f8b7dcf3b15bd9838b2c/radialmenu-getting-started_1.png)

> With the default **RadialMenuTriggerBehavior** you can not control the positioning and the detaching of the menu from the target element.

Here are examples that demonstrate how to extend the **RadialMenuTriggerBehavior** functionality:

* [Define Custom Trigger Behavior](https://www.telerik.com/winui/documentation/controls/radradialmenu/how-to/howto-custom-triggerbehavior)
* [Change the Menu Position](https://www.telerik.com/winui/documentation/controls/radradialmenu/how-to/howto-custom-position)
