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

RadMenuItem BackColor only visible on mouse over

1 Answer 126 Views
Menu
This is a migrated thread and some comments may be shown as answers.
scottw
Top achievements
Rank 1
scottw asked on 04 Sep 2013, 08:06 PM
I am trying to set the background color of a RadMenuItem based on some logic in order to highlight a particular item in the menu. To set the highlighted item color I am doing this:

menuItem.FillPrimitive.BackColor = Color.Gray;


The problem is this coloring only is visible when the mouse moves over the item. I want the coloring to apply to all states. Is there something else that must be done for this to appear in non-hover states?

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 05 Sep 2013, 04:35 PM
Hello Scott,

Because of the specific design they are after, not all themes may share the same set of settings, therefore the solution for you may depend on which theme you are using. However, the most common setting to be applied in this situation is the Visibility property set to Visible:

this.radMenuItem1.FillPrimitive.BackColor = Color.Red;
this.radMenuItem1.FillPrimitive.Visibility = Telerik.WinControls.ElementVisibility.Visible;

I hope this helps. If you still need assistance, please let me know which theme you are using, so that I can provide you with adequate assistance.
Regards,
Nikolay
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Menu
Asked by
scottw
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or