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

How to set RadMenu Background Image

1 Answer 178 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Zack
Top achievements
Rank 1
Zack asked on 27 Oct 2008, 11:25 PM
Hi,
I am evaluating Winforms with VS2008 on XP.

I would like to create a menu strip with rad menu on top and a simple ribbon-style image below the menu. However, when I drag rad menu on top of an existing panel with an image, rad menu does not display the underlying panel image.  I have tried setting the rad menu property RadMenu BackColor to Transparent but the rad menu is still opaque and does not display the image.

I must be missing something as I am following the steps in your help documentation on radmenu.

Here are the steps:
1. Start new project with a form.
2. Drag windows panel control onto the form, assign an image to it.
3. Drag radMenu on top of win panel control, enter a menu text item.
4. Select radMenu item and from properties menu, select BackColor property item, then select 'transparent' from the web tab.

Thanks for letting me know wha tI am doing wrong.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 28 Oct 2008, 01:17 PM
Hi Zack,

Thank you for contacting us.

Indeed, there are some additional steps which you should follow and which are not included in our documentation. We will update it in one of our next releases.

You should set the BackColors of the RadMenu's (and its main RadMenuItems) FillPrimitive to Transparent. This could be done in the theme using our Visual Style Builder tool. For more information about it, please refer to these videos: video1, video2.

You can set these properties programmatically as well. For this purpose, our RadControlSpy will be of good use, since it will give you more information about which visual element is which in the control's hierarchy. For more information, refer to this video.

I am attaching a sample project to demonstrate the programmatic approach. If you need additional assistance, feel free to contact me.

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Zack
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or