I couldn't able to apply rounded corners to the SubMenu's in the
RadContextMenu. I do like to know how to set the minwidth for submenu
just like in the TopLevelMenu and How to change the highlightcolor. Any help would be great. Thank you in
advance.
<Window.Resources> <Style x:Key="MenuItemStyle" TargetType="{x:Type telerik:RadMenuItem}"> <Setter Property="Icon" Value="{Binding Icon}" /> <Setter Property="IsSeparator" Value="{Binding IsSeparator}" /> </Style> <Style x:Key="ContextMenuStyle" TargetType="telerik:RadContextMenu"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="telerik:RadContextMenu"> <Border CornerRadius="5" BorderBrush="Gray" BorderThickness="1" Background="White" SnapsToDevicePixels="True"> <ItemsPresenter /> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Grid> <Border Background="Gray" > <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="textcontext" IconColumnWidth="0" MinWidth="150" Style="{StaticResource ContextMenuStyle}" HorizontalAlignment="Right" NotifyOnHeaderClick="True" ItemContainerStyle="{StaticResource MenuItemStyle}" ItemsSource="{Binding}" > <telerik:RadMenuItem Header="New" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Header="Edit" > <telerik:RadMenuItem Header="New" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Header="Edit"> <telerik:RadMenuItem Header="New" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Header="Edit"/> <telerik:RadMenuItem Header="Delete" /> <telerik:RadMenuItem Header="Select" /> </telerik:RadMenuItem> <telerik:RadMenuItem Header="Delete" /> <telerik:RadMenuItem Header="Select" /> </telerik:RadMenuItem> <telerik:RadMenuItem Header="Delete" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Header="Select" /> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu> </Border> </Grid>