Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Styling RadMenuItem (click event?)

Answered Styling RadMenuItem (click event?)

Feed from this thread
  • TLDesigner avatar

    Posted on Sep 15, 2011 (permalink)

    Hello,

    Im just trying to get a color background when I click on any radmenuitem.

    I need to put it on app.xaml to do it general for all my menuitem controls.

    Something like:
    <Style x:Key="MenuItemOnClickColor" TargetType="{x:Type telerik:RadMenuItem}">
        <Style.Triggers>
            <Trigger Property="?????????">
                <Setter Property="Background" Value="Red" />
            </Trigger>
        </Style.Triggers>
    </Style>

    Thanks for your help.
    Regards.

    Reply

  • TLDesigner avatar

    Posted on Sep 19, 2011 (permalink)

    Someone knows how to do it?

    Thanks.

    Reply

  • Answer Konstantina Konstantina admin's avatar

    Posted on Sep 19, 2011 (permalink)

    Hello Tldesigner,

    Setting properties is not sufficient to achieve all design details. Although the controls have properties such as BorderBrush Background and Foreground their templates use several visual elements with 2 or 3 borders, shadows, areas with different background colors and states. There is no MouseOverBackground or something like that so if you want  to style the menu you will have to edit the menu's template.
    Editing the colors used in the templates for state effects in Expression Blend should be quite easy.

    Please refer to this forum discussion for more information about editing the RadMenu hover colour. It is for Silverlight, but the same principles apply for WPF.

    Best wishes,
    Konstantina
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > Styling RadMenuItem (click event?)