This is a migrated thread and some comments may be shown as answers.

Menu and SubMenu background color

3 Answers 178 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Ben Hayat
Top achievements
Rank 2
Ben Hayat asked on 06 Dec 2008, 11:21 PM
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

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 08 Dec 2008, 08:09 AM
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.
0
Ben Hayat
Top achievements
Rank 2
answered on 08 Dec 2008, 07:27 PM
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
0
Accepted
Hristo
Telerik team
answered on 10 Dec 2008, 08:11 AM
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.
Tags
Menu
Asked by
Ben Hayat
Top achievements
Rank 2
Answers by
Hristo
Telerik team
Ben Hayat
Top achievements
Rank 2
Share this question
or