We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Office2007 Custom Theme

Thread ID:





94622 May 24,2010 07:10 PM UTC May 26,2010 12:13 PM UTC WinForms 1
Tags: Tools
Mike Mann
Asked On May 24, 2010 07:10 PM UTC

I am attempting to create a custom theme for my menus and toolbars. I am currently using the "Custom Office 2007 Colors" demo that is supplied with your samples.

I have a new questions regarding styling:
1.) How can I set the menu text color? The Office2007Colors object offers no property to set the text color of a menu.

2.) How can I set the menu background color? There is a MenuBackground property, but it appears to have no affect. I can set the "Column Color" of menus, but this looks weird. I would like the menu to be entirely one color.

3.) There appears to be a bug regarding the BarItemPressFlashColor and the BarItemSelectFlashColor. These properties work correctly for regular BarItems, but the BarItemSelectFlashColor is being shown on DropDown menu items and drop down bar items when it should be displaying the BarItemPressFlashColor.

4.) There appear to be a lot of strange border artifacts that show up when changing the colors. Some regular BarItems have a border on the left and right sides, but I do not want them to.

Is there a reliable way to style EVERY element for these menus and toolbars? The supplied themes do not fit my needs.

Lingaraj S [Syncfusion]
Replied On May 26, 2010 12:13 PM UTC

Hi Mike,

Thank you for your interest in Syncfusion products.

1 & 2. Please try using MenuColors class in your application to change the BackColor and TextColor for Menus.

MenuColors.SelColor = Color.FromArgb(179, 71, 59);
MenuColors.SelTextColor = Color.White;
MenuColors.SelBorderColor = Color.FromArgb(183, 214, 242);
MenuColors.MenuBGColor = Color.White;
MenuColors.MenuLeftStripColor = Color.White;
MenuColors.DropDownBorderColor = Color.FromArgb(166, 205, 226);
MenuColors.PressedSelColor = Color.FromArgb(166, 201, 232);
MenuColors.CheckedSelColor = Color.FromArgb(215, 236, 255);
MenuColors.FloatingCommandBarCaptionColor = Color.FromArgb(183, 214, 242);

3. By default, The regular bar items have pressed state with this, but in dropdown menuitems don’t have pressed state for this so BarItemSelectFlashColor shown in DropDown Items.

4. Could you please provide more information about the strange border behavior in BarItems.

Please let me know if you have any other concerns.

Lingaraj S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon