Menu and SubMenu background color

4 posts, 1 answers
  1. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 06 Dec 2008 Link to this post

    I can set the background color the menu and works fine.
    However, the submenu seems to have a "white box" (that encompasses all of it's sub-items), even if I change the sub-item background to the color I want, I still see that "White" color surrounding.

    Is it possible to give us a way (hopefully in Blend) that I can set the color of the box?
    I'd like to make the menu look like you website menu, when you click on Products, you see the same color of menu for sub-items as well.

    Thanks!
    ..Ben
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 08 Dec 2008 Link to this post

    Hi Ben,

    The "white box" that you see is the border that surrounds all submenu items inside the popup. You can remove it by changing the control template of MenuItem (top level header template and submenu header template have popups with this border).

    Right now editing control templates in Blend is not the best experience but we are working on improving it.
    Sorry for the inconvenience.


    Regards,
    Hristo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Ben Hayat
    Ben Hayat avatar
    892 posts
    Member since:
    May 2008

    Posted 08 Dec 2008 Link to this post

    Hristo;

    I'm confused or unclear about something. You guys are already exposing property for changing the foreground and background color of MenuItem and menu. Why can't you also expose another property so we can adjust the border color? It kind of defeats the "RAD" Philosophy about the control for us to get into the the assembly's control template (which is not very convenient with Blend) and make changes to something that is used by many people.

    If possible, it would be great to expose this as a property.
    Thanks!
    ..Ben
  5. Answer
    Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 10 Dec 2008 Link to this post

    Hello Ben,

    Both properties Foreground and Background are from Control class. We just inherit them. Also there are more properties related to border - BorderBrush and BorderThickness but with hierarchical controls they affect the header of the hierarchy. So adding properties like this for the children is a good idea.
    I will pass the idea to our frontend designer.

    Thanks for your feedback.

    All the best,
    Hristo
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top