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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change border color and foreground color

Thread ID:





148049 Oct 3,2019 08:11 AM UTC Oct 4,2019 01:54 PM UTC WinForms 1
Tags: XPToolbar
Asked On October 3, 2019 08:11 AM UTC


I use a XpToolBar with Metro-Style.
My question is: Is it possible to change the foreground color from a menu item to white (see attachment) and the color and thickness from the border?

Thanx for your support

Attachment: XpToolBar_b02f341a.zip

Thirupathi Bala Krishnan [Syncfusion]
Replied On October 4, 2019 01:54 PM UTC

Hi Thomas,

Thanks for contacting Syncfusion support.

Please find our response as below,
Is it possible to change the foreground color from a menu item to white 
Yes. You can achieve this requirement –“How to change the menu item forecolor while hover the item in toolbar” by setting the fore color to the SelTextColor property.

Please refer the following code sample.
# Form1.cs 
using Syncfusion.Windows.Forms; 
        public Form1() 
            MenuColors.SelTextColor = Color.White;             

If you want to customize the menu item text, you should define the value using CustomTextFont property. Please refer the following code sample. 
# Form1.cs

        public Form1() 
            this.parentBarItem.BeforePopup += ParentBarItem_BeforePopup; 
        private void ParentBarItem_BeforePopup(object sender, CancelEventArgs e) 
            foreach (BarItem baritem in this.parentBarItem4.Items) 
                baritem.CustomTextFont = new Font("Times New Roman", 8.25F); 

How to change the color and thickness from the border 
Currently, we don’t have any support to customizing the border of bar items such as border color, border thickness. Already We have logged a feature report to provide support to customize their appearance of bar items. Currently we don’t have any immediate plan to implement the feature. This feature will be included in any of our upcoming release.


Please let us know if you need any further assistance.

Thirupathi B.


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

Live Chat Icon For mobile
Live Chat Icon