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
close icon

GroupBar BorderColor Resetting

Setting a GroupBar BorderColor in the designer changes the border in the designer, but when running, it changes back to White.

If I set the BorderColor through code, it works fine.

1 Reply

MK Mallika Kannan Syncfusion Team March 23, 2017 03:59 AM UTC

Hi Dan, 
Thank you for contacting Syncfusion support. 
In GroupBar Control, the Border Color customization will be serialized once it is modified and then Visual Style customization code will be serialized.   
Border Style customization 


Visual Style Customization 

Figure 4: Visual style to Metro. 
As Serialized code snippet in Form Designer.cs, Visual Style code snippet applied after the Border Color customization, So default Border Color customization defined for chosen Visual Theme will be applied. So Border Color defined in sample designer will be overridden.  

So this is not an issue and this problem can be resolved by setting the Border color through code after Visual Style customization is applied.  
Please refer the following code snippet, 
  //set Border Color 
this.groupBar1.BorderColor = Color.Red; 
After running the Border color is displayed. 
We have also prepared the sample for your reference. It can be downloaded from the following Link.   
Kindly check with above solution and let us know if it is helpful.    

Live Chat Icon For mobile
Up arrow icon