# Customizing Appearance

The `RadMenu` and `RadMenuItem` controls in Progress® Telerik® UI for WPF support styles for customizing the menu and its items.

## Style the RadMenu

Set the `Style` property of a `RadMenu` to apply a style to that control. Alternatively, define an implicit style targeting `RadMenu` to style menus within its resource scope.

The following example defines an implicit style for `RadMenu`:

```XAML
<Grid>
    <Grid.Resources>
        

        <Style TargetType="telerik:RadMenu">
            <Setter Property="Background" Value="Red" />
        </Style>
    </Grid.Resources>
    <telerik:RadMenu VerticalAlignment="Top" >
        <telerik:RadMenuItem Header="File" />
        <telerik:RadMenuItem Header="Edit" />
    </telerik:RadMenu>
</Grid>
```

> caption RadMenu with a red background in the Fluent theme

![RadMenu with a red background in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/59686859938e145564be15915867c3ec/radmenu_styling.png)

## Style the RadMenuItem

To style menu items, set the `ItemContainerStyle` property of `RadMenu` or define an implicit style targeting `RadMenuItem`.

For static items, `RadMenu.ItemContainerStyle` applies only to its direct children. To style child items, set `ItemContainerStyle` on their parent items.

For dynamic items, the `HierarchicalDataTemplate` passes `ItemContainerStyle` through the hierarchy. To use different styles at different levels, use nested `HierarchicalDataTemplate` instances and set `ItemContainerStyle` on each. For more information, see [Binding to Dynamic Data](https://www.telerik.com/products/wpf/documentation/controls/radmenu/populating-with-data/binding-to-dynamic-data).

Use `ItemContainerStyleSelector` to choose a style based on an item's position in the hierarchy. For more information, see [Template and Style Selectors](https://www.telerik.com/products/wpf/documentation/controls/radmenu/populating-with-data/template-and-style-selectors).

The following example defines an implicit style for `RadMenuItem`:

```XAML
<Grid>
    <Grid.Resources>
        
        <Style TargetType="telerik:RadMenuItem">
            <Setter Property="Background" Value="Red" />
            <Setter Property="IconColumnWidth" Value="0" />
        </Style>
    </Grid.Resources>
    <telerik:RadMenu VerticalAlignment="Top" >
        <telerik:RadMenuItem Header="File">
            <telerik:RadMenuItem Header="File 1" />
            <telerik:RadMenuItem Header="File 2" />
            <telerik:RadMenuItem Header="File 3" />
        </telerik:RadMenuItem>
        <telerik:RadMenuItem Header="Edit" />
    </telerik:RadMenu>
</Grid>
```

> caption RadMenuItem controls with a red background in the Fluent theme

![RadMenuItem controls with a red background in the Fluent theme](https://www.telerik.com/products/wpf/documentation/assets/23e94fb63a326534bbd3e77f6b8618a1/radmenuitem_styling.png)

In the example, the clicked item has a different background because triggers or visual states in its `ControlTemplate` take precedence over the implicit style. To change this behavior, [extract and modify the control template](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates) for the theme you use.

## See Also

* [Template and Style Selectors](https://www.telerik.com/products/wpf/documentation/controls/radmenu/populating-with-data/template-and-style-selectors)
* [Editing Control Templates](https://www.telerik.com/products/wpf/documentation/styling-and-appearance/styling-apperance-editing-control-templates)
